"Time Out Expire" problem
-
Hi all, In my application, I m using a query which is quite lengthy.Some times give the message "Time Out Expire........".I am setting sqlCommand.commandTimeout=4000 but it is not working and still display the message frequently. can anybody help me,how to overcome this problem?
-
Hi all, In my application, I m using a query which is quite lengthy.Some times give the message "Time Out Expire........".I am setting sqlCommand.commandTimeout=4000 but it is not working and still display the message frequently. can anybody help me,how to overcome this problem?
I think you page is expiring. Try following code.
// Give it 1 hour = 3600 seconds
Server.ScriptTimeout = 3600;Or you need to call long running operation with asynchronous call to that particular page. http://msmvps.com/blogs/jalam/archive/2007/11/22/performing-long-running-operation-with-asynchronous-page-in-asp-net-2-0.aspx[^] Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
-
I think you page is expiring. Try following code.
// Give it 1 hour = 3600 seconds
Server.ScriptTimeout = 3600;Or you need to call long running operation with asynchronous call to that particular page. http://msmvps.com/blogs/jalam/archive/2007/11/22/performing-long-running-operation-with-asynchronous-page-in-asp-net-2-0.aspx[^] Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....
thanx 4 d reply, can u plz explain when i have to set Server.ScriptTimeout = 3600;
-
thanx 4 d reply, can u plz explain when i have to set Server.ScriptTimeout = 3600;