Re: State management
- From: v-schang@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Thu, 31 Mar 2005 02:52:23 GMT
Hi Tim,
I think the problems here is that when the user hit the "back" button on
browser, the displayed page is by default retrieved from the client's
cache(if we didn't explictitly disable the page's client cache). I think
that's why you'll find the Page_load not fired. IF the page is actually
retrieved from severside , the Page_load will surely be fired.
In addition, as for detecting whether the page is requested the first time
or specifying a version info, I think we can add a certain version field(a
timestamp) in the page's viewstate at the first request( !IsPostBack), and
if there is no such field , it means it's the first request or if the info
is different from the session's data, we need to update the page. But this
depends on the page is not retrieved from client cache when user hit "back"
button. How do you thnk of this?
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- Re: State management
- From: Tim Marsden
- Re: State management
- References:
- State management
- From: Tim Marsden
- Re: State management
- From: Alvin Bruney [ASP.NET MVP]
- Re: State management
- From: Tim Marsden
- State management
- Prev by Date: Triggering a javascript after postback from dropdownlist
- Next by Date: Re: ASP.NET: Disconnected Event Handlers
- Previous by thread: Re: State management
- Next by thread: Re: State management
- Index(es):
Relevant Pages
|