G
Guest
I'm trying to response.redirect to another page on a button click event and I get an error message stating that the thread was being aborted (if I trap for the error that is...)
I've researched this a bit and see that this error is supposed to happen in response.redirect, but it's not in a Try Catch statement for me so I don't know why it won't perform the redirect
When the button is clicked the page is simply reloaded with a white screen, and the URL never changes
I've tried overloading Response.redirect and setting the endResponse parameter to False, but all that does is simply reload the exact same page I'm trying to leave (URL stays the same and the page is simply reloaded.)
Server.Transfer seems to work in the fact that the page is changed, but I need the URL to change as well, since there are new parameters I need to put in there
The code is as simple as this
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Clic
Response.Redirect("default.aspx?ID=123456"
End Su
Now what's interesting is that everything works fine on my Windows 2003 Server dev enviroment, but it won't redirect when I put this into production on Windows 2000 Server, so I'm at a complete loss here
Any ideas?
I've researched this a bit and see that this error is supposed to happen in response.redirect, but it's not in a Try Catch statement for me so I don't know why it won't perform the redirect
When the button is clicked the page is simply reloaded with a white screen, and the URL never changes
I've tried overloading Response.redirect and setting the endResponse parameter to False, but all that does is simply reload the exact same page I'm trying to leave (URL stays the same and the page is simply reloaded.)
Server.Transfer seems to work in the fact that the page is changed, but I need the URL to change as well, since there are new parameters I need to put in there
The code is as simple as this
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Clic
Response.Redirect("default.aspx?ID=123456"
End Su
Now what's interesting is that everything works fine on my Windows 2003 Server dev enviroment, but it won't redirect when I put this into production on Windows 2000 Server, so I'm at a complete loss here
Any ideas?