C
CK
I have a web page called PageOne.aspx which is supposed to do a long
process but I don't need to show any results to the client, so I want
to redirect the client to PageTwo.aspx right in the beginning of the
Page_Load and then continue with the long process.
So I've tried using Response.Redirect("http://mysite.com/PageTwo.aspx",
false) but the customer is not getting the response only until I finish
processing the whole page.
So I've tried adding Response.Flush();Response.Close(); but it does not
work properly. The first time I go to PageOne I get redirected right a
way but it will cause IE to display "page can not be displayed" instead
of redirecting to PageTwo.aspx, and then if I try again to go to
PageOne in that same browser it will take a long time until it gets to
the "page not found". [caching?]
But if try testing that same page with Wget, perl get they seem to
follow to PageTwo.aspx without incidence.
In short how do you redirect a customer instantaneously to another page
while the first page can still continue doing stuff after the customer
gets the redirect message?
process but I don't need to show any results to the client, so I want
to redirect the client to PageTwo.aspx right in the beginning of the
Page_Load and then continue with the long process.
So I've tried using Response.Redirect("http://mysite.com/PageTwo.aspx",
false) but the customer is not getting the response only until I finish
processing the whole page.
So I've tried adding Response.Flush();Response.Close(); but it does not
work properly. The first time I go to PageOne I get redirected right a
way but it will cause IE to display "page can not be displayed" instead
of redirecting to PageTwo.aspx, and then if I try again to go to
PageOne in that same browser it will take a long time until it gets to
the "page not found". [caching?]
But if try testing that same page with Wget, perl get they seem to
follow to PageTwo.aspx without incidence.
In short how do you redirect a customer instantaneously to another page
while the first page can still continue doing stuff after the customer
gets the redirect message?