browser back and events

I noticed that when I force a browser back and the resulting page contains a
querystring, it fires the Page_Load event. But if the resulting page
doesn't contain a querystring, no Page_Load fires. Is this as expected? I
use the following code to create the brower back:

ClientScript.RegisterStartupScript(this.GetType(), "goBack", "<script
type='text/javascript'
language='javascript'>window.history.go(-2);</script>");
Patrice [ Di, 08 April 2008 16:57 ] [ ID #1937768 ]

Re: browser back and events

Your browser is just getting the old version from the cache. If there are
no params on the url it is assuming the page content won't be dynamic. Not
100% true, but that's how it works.

"hmm" <nobody [at] nowhere.com> wrote in message
news:hNSdneQZ2bk-GmbanZ2dnUVZ_qainZ2d [at] nuvoxcommunications...
>I noticed that when I force a browser back and the resulting page contains
>a querystring, it fires the Page_Load event. But if the resulting page
>doesn't contain a querystring, no Page_Load fires. Is this as expected? I
>use the following code to create the brower back:
>
> ClientScript.RegisterStartupScript(this.GetType(), "goBack", "<script
> type='text/javascript'
> language='javascript'>window.history.go(-2);</script>");
>
>
>
>
Aidy [ Di, 08 April 2008 16:59 ] [ ID #1937770 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » browser back and events

Vorheriges Thema: TableAdapter returns null for stored proc returning a single value
Nächstes Thema: Posted Form Items not in Request