I have the following code in my codebehind (aspx.cs):
protected void button1_Click(object sender, EventArgs e)
{
new Thread(delegate() {
try
{
Thread.Sleep(30000); //do nothing for 30 seconds
}
catch (Exception ex)
{
//I AWLAYS get a ThreadAbortException here
//in about 1 second WHY!?!??!
}
}).Start();
}
Please help me
Sumit Kesarwani
17-Nov-2014Hope this will solve your problem