viewstate timeout ?

viewstate timeout ?

am 09.04.2008 11:51:23 von Nicopilami

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

Re: viewstate timeout ?

am 09.04.2008 12:15:22 von Aidy

You sure the issue isn't being caused by the Session timing out? Or your
Application being shutdown due to inactivity?

"Nicopilami" wrote in message
news:a16c794c-dbe1-4dbc-9c50-868db117d993@d1g2000hsg.googleg roups.com...
> 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

Re: viewstate timeout ?

am 09.04.2008 17:12:28 von Nicopilami

On 9 avr, 12:15, "Aidy" wrote:
> You sure the issue isn't being caused by the Session timing out? Or your
> Application being shutdown due to inactivity?
>
> "Nicopilami" wrote in message
>
> news:a16c794c-dbe1-4dbc-9c50-868db117d993@d1g2000hsg.googleg roups.com...
>
> > 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

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

RE: viewstate timeout ?

am 09.04.2008 19:42:02 von pbromberg

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


"Nicopilami" wrote:

> 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
>

Re: viewstate timeout ?

am 10.04.2008 10:26:35 von Aidy

> 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.