M
mark mcfarlane
I have a simple button on a page with a
Response.Redirect("http://www.microsoft.com"); in the call back. There's
lotsof other stuff going on on the page, but not in this buttonPress method.
There's only on eline of code in the buttonpress method,
Response.Redirect(http://www.microsoft.com);
The code works perfectly on several Windows XP machines. The redirect does
not work on 2 different Windows 2003 servers.
I have tried numerous 'fixes' recommended by people (flushing and closing
the response object, using the true/false version, putting it in a try
block, removing it from a try block,....) Nothing makes a difference,
Server.Transfer("url"); gets around the problem, but I don't like it because
the URL is now wrong in the browser window. Also, like most programmers, a
'fix' just isn't enough, I have to understand WHY this isn't working
correctly or I can't sleep, my hair will fall out, ....
Anyone else have an idea?
This must be a configuration setting for IIS, or a bug in IIS 6.0 and the
ASP.NET version on my deployment web server.
Mark McFarlane
Response.Redirect("http://www.microsoft.com"); in the call back. There's
lotsof other stuff going on on the page, but not in this buttonPress method.
There's only on eline of code in the buttonpress method,
Response.Redirect(http://www.microsoft.com);
The code works perfectly on several Windows XP machines. The redirect does
not work on 2 different Windows 2003 servers.
I have tried numerous 'fixes' recommended by people (flushing and closing
the response object, using the true/false version, putting it in a try
block, removing it from a try block,....) Nothing makes a difference,
Server.Transfer("url"); gets around the problem, but I don't like it because
the URL is now wrong in the browser window. Also, like most programmers, a
'fix' just isn't enough, I have to understand WHY this isn't working
correctly or I can't sleep, my hair will fall out, ....
Anyone else have an idea?
This must be a configuration setting for IIS, or a bug in IIS 6.0 and the
ASP.NET version on my deployment web server.
Mark McFarlane