RadWindow caching page when browser back button hit?

1 posts, 0 answers
  1. Srikanth
    Srikanth avatar
    1 posts
    Member since:
    Oct 2015

    Posted 07 Oct 2015 Link to this post

    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?

Back to Top