Reposting. I dont see my previous post. Hopefully this wont be another
duplicate ;P
Rubble,
When the "BACK" button is clicked, the browser will display the page exactly
as it were when it was previously viewed. This is to comply with the
standards set for browser vendors which states that the browser should not
make another request to a server, but retrieve the page from cache.
Try the following to disable caching. I havent personally tried but the docs
clearly state that : If you set cacheability to HttpCacheability.NoCache or
HttpCacheability.ServerAndNoCache, the requesting client will not cache
pages in its History folder. For example, any time a user clicks a back or
forward button, a new version of the response will be requested.
To programmatically set this try the following in your page_load method:
Response.Cache.SetCacheability(HttpCacheability.No Cache)
or try setting this in your .aspx page which should have the same effect as
the above :
syntax is : <%@ OutputCache Duration="#ofseconds" Location="Any | Client |
Downstream | Server | None" Shared="True | False"
VaryByControl="controlname" VaryByCustom="browser | customstring"
VaryByHeader="headers" VaryByParam="parametername" %>
<%@ OutputCache Duration="1" Location="none" VaryByParam="none" %>
Note where the "Location" attribute is set to none, theorically this should
have the same effect as programmatically setting
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Read the following documentation for details.
http://msdn.microsoft.com/library/de...utputCache.asp
http://msdn.microsoft.com/library/de...lityofpage.asp
"Rubble" <> wrote in message
news:. ..
> I figured it would work like a form. For example, if you choose
> several options on a form then hit submit...then hit the back button,
> your options would still be selected. The page doesnt refresh or
> change all the values back to the default, but keeps them the way you
> left them.
>
> Could I set the cache on the user side so that it "remembers" the tab
> or somehow make the tab function like a form, where the selections
> remain unchanged?
>
> Thanks for the advice!
> B. Rubble
>
>
>
> "Alessandro Zifiglio" <> wrote in
message news:<7Z_Wb.6614$>...
> > Hitting the back button does not refresh the page but merrily picks up
the
> > page from cache. This is how the browser works on the client, not much
you
> > can do from the server and has nothing to do with your tab control ;P
> >