ASP.net Server.ScriptTimout doesn't work on IIS6?

by nolovelust 19. February 2010 21:36

Just put functions below to your codebehind and it will work fine

private int timeOut;
private void Page_Init(object sender, System.EventArgs e)
{
timeOut = Server.ScriptTimeout;
// Give it 1 mins = 600 seconds
Server.ScriptTimeout = 600;
}
private void Page_Unload(object sender, System.EventArgs e)
{
Server.ScriptTimeout = timeOut;
}

Tags:

ASP.NET | Useful

Add comment

  Country flag

biuquote
Loading

Adverts

Welcome

Tag cloud

Month List