Mats wrote:
In any asp page where I try to use Option Explicit
there is no error message for undimmed variables, the page just does
not execute. Other errors produce an error page in the normal way
(just tested)
Pages begins
<%@ Language=VBScript %>
<%option explicit%>
<%'more code and html....%>
It used to produce an error for undimmed variables and it should...
It also happens when I test a page (with an undimmed variable) on the
server for our homepage (IIS 6.0) not just on my "testbed" (IIS 5.1)
Any patch that might change the behavior of IIS?
It seems that not just my pc is affected.
Mats
This really doesn't help. For all we know, there could be something in
<%'more code and html....%>
that is causing this behavior. You should produce a real 3 or 4 line page
that exhibits the behavior so we can attempt to reproduce it. Here's my
attempt:
<%@ Language=VBScript %>
<%option explicit%>
<%
s = "testing"
response.write "s contains """ & s & """"
%>
Are you saying that when you copy this into a page and run it that you get
neither an error message nor a result from the response.write? I'm running
IIS6 on XP Pro SP2 and I get the expected error when I run this page. I
tried it on my company's servers and still received the expected error.
Does your web server have a custom error page? Is it configured to not send
error messages to the client?
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"