This is a migrated thread and some comments may be shown as answers.

RadWindow caching page when browser back button hit?

0 Answers 42 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Srikanth
Top achievements
Rank 1
Srikanth asked on 07 Oct 2015, 09:53 PM

I have Page A and Page B. Page A has "RadWindow" panel which show on condition and Page B is the "Thank you page". When user goes from Page A to Page B using submit button. So Page A is cached. When user clicks back button on browser in Page B. users are seeing cached page and it is never hitting to server check validation. So I used below code to remove cache

 

HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1)) HttpContext.Current.Response.Cache.SetValidUntilExpires(false) HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches) HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache) HttpContext.Current.Response.Cache.SetNoStore()

If I use above code I page is load blank page (shown below). because it lost data. User doesn't like this page to display. So they don't want to display. Is it possible reload page when we pressed back button? How?

<telerik:RadWindow ID="radMembershipRenewal" Title="Change Membership and Subscription" KeepInScreenBounds="true" VisibleOnPageLoad="false"VisibleStatusbar="False" EnableEmbeddedSkins="False" Modal="true" ReloadOnShow="true"
           Behaviors="Move" runat="server" Height="530" Width="780" >

 

If I dont show RadWindow, I can hit to server for validation. Is there anyway we can handle from RadControls?

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Srikanth
Top achievements
Rank 1
Share this question
or