Hello
I am using the viewstate for storing my variables between two page
postbacks (the same page is called back), in order to not save any
cookie or session variable on the server;
My problem is that it seems there is a timout between the render of
the page and the moment you postback the page by clicking on a
control : if i click on a button just after the page is displayed, no
pb, but if i wait about 30 seconds and then click on the button, then
the viewstate seem to have been cleared;
After many researchs on the net, i didn't found any response to my
question, so i really don't understand why this happens. could you
help me please ? should i add anything to my HTML code or is the
problem on the server side ?
For information, i'm working on IIS 5.0, C# 2, Visual Studio 2008
express
bye
Nico
Aidy - 09 Apr 2008 11:15 GMT
You sure the issue isn't being caused by the Session timing out? Or your
Application being shutdown due to inactivity?
> Hello
>
[quoted text clipped - 18 lines]
> bye
> Nico
Nicopilami - 09 Apr 2008 16:12 GMT
> You sure the issue isn't being caused by the Session timing out? Or your
> Application being shutdown due to inactivity?
[quoted text clipped - 21 lines]
> > bye
> > Nico
it would be curious that the application timeout would be set up to
stop after 40 seconds i guess... but where could i check it ?
Session timeout is set up by default to 30 minutes.
Nico
Aidy - 10 Apr 2008 09:26 GMT
> it would be curious that the application timeout would be set up to
> stop after 40 seconds i guess... but where could i check it ?
> Session timeout is set up by default to 30 minutes.
Sorry I didn't read it properly, I thought you said 30 mins, not 30 seconds.
No, defo something else going on, the viewstate won't clear after 30
seconds.
Peter Bromberg [C# MVP] - 09 Apr 2008 18:42 GMT
ViewState cannot "time out"; its just the contents of a hidden form field in
the page HTML. You have something else going on there.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
> Hello
>
[quoted text clipped - 18 lines]
> bye
> Nico