dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Nov 9th 2018 by Srinath M S

Language: .NET, Expertise: Intermediate - Learn how to a kill long-running process or take another action.

You can use HttpResponse's IsClientConnected property to figure out if the connection is still alive. Based on the value, you can kill a long-running process if the client is not connected or redirect to a different page, etc.

if (Response.IsClientConnected)
{
}
else
{
}
Home
Mobile Site | Full Site