M
Michal Kostic via .NET 247
Hi
I am encountering following ASP.NET problem:
In the Page_Load event I initialize connection string of a sqlconnection. This works fine most of the time, but when the usercontinues using the page after long time of inactivity (he/shekept the IE window open for e.g. 20 minutes and then pressessome button), the Page_Load event is not fired and as result theconnection is not initialized with proper string.
This happens also for other variables that are initialized in thePage_Load event.
I have tried also adding the no-cache code
{
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
}
but does not help.
Any suggestions?
Thanks in advance
Michal Kostic
I am encountering following ASP.NET problem:
In the Page_Load event I initialize connection string of a sqlconnection. This works fine most of the time, but when the usercontinues using the page after long time of inactivity (he/shekept the IE window open for e.g. 20 minutes and then pressessome button), the Page_Load event is not fired and as result theconnection is not initialized with proper string.
This happens also for other variables that are initialized in thePage_Load event.
I have tried also adding the no-cache code
{
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
}
but does not help.
Any suggestions?
Thanks in advance
Michal Kostic