If the second parameter is "false", does that mean the Response.Redirect
won't redirect to the new URL until the thread finishes executing? I would
like it to redirect immediately to the new URL while the thread continues to
execute.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
The default behavior of Response.Redirect is to abort the thread.
If you don't want this to happen you can pass False to Response.Redirect's
optional second parameter.
Response.Redirect("SomePage.aspx", false);
Here's more info:
http://windowssdk.msdn.microsoft.com.../a8wa7sdt.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mark Huebner" <ma**@IntelligentSoftwareSystems.comwrote in message
news:eW**************@TK2MSFTNGP03.phx.gbl...
>>I have an aspx web page with the following C# code in the page load event.
Can somebody tell me if the Response.Redirect() will cause my tLoadDNN
thread to stop executing before it is finished? tLoadDNN might
occasionally take up to 16 seconds to complete.
protected void Page_Load(object sender, EventArgs e)
{
Thread tLoadDNN = new Thread(new ThreadStart(LoadDNN));
tLoadDNN.Start();
Response.Redirect("Default1.htm");
}