ASP:

The default language for ASP is VBScript. If JScript is not explicitly specified, then the code is evaluated with the VBScript engine. To specify JScript for the entire page, place the following line at the beginning of the script: <%@language="jscript"%> If the page language is not defined, using the following syntax will default to VBScript: <% ... %> You can quickly ommit the Response.Write() method by using an equal "=" sign: <%=request.servervariables("remote_addr")%> This is the same as writing: <%response.write(request.servervariables("remote_addr"))%> -------------------------------------------------------------------------------- Another thing that can cause this problem is if you use JScript / JavaScript and copy VBScript code over, e.g.: <script language="jscript" runat="server"> response.write("foo"); </script> This should yield: Microsoft JScript runtime error '800a1391' 'response' is undefined The reason is that in JScript, the "Response" object variable is case sensative so it must be typed as: Resonse.write('foo') -------------------------------------------------------------------------------- Remember that to enumerate a collection in JScript, Microsoft made it more difficult than with VBSsript in order to promote their language: VBSCRIPT Collection Enumeration: For Each Item In MyCollection Print Item Next JSCRIPT Collection Enumeration for (var e=new Enumerator(myCollection);!ee.atEnd();e.moveNext()) { var item = e.item(); }