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>");
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>");
>
>
>
>