Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I am getting "WebPage has Expired" when i hit browser back button in IE browser.
I have two webpages . I am using Below Code to Send data to second Page .

Code :-
<asp:LinkButton ID="Uuid" runat="server" PostBackUrl='<%# string.Format("ABC.aspx?Guid={0}",Eval("Guid"))%>'

After reaching Second page when i hit browser back button it gives me "WebPage has Expired" error .

Please need assistance .....

What I have tried:

C#
Response.Cache.SetExpires(DateTime.Now.AddMinutes(-1));
Response.Cache.SetCacheability(HttpCacheability.Private);
Posted
Comments
manu_dhobale 15-Oct-16 5:46am    
Did you tried by removing postbackURl and adding just href?
AmitGupta#Developer 17-Oct-16 2:45am    
Href not working for Link Button
manu_dhobale 17-Oct-16 4:26am    
i tried this
<asp:LinkButton ID="LinkButton1" runat="server" href="https://www.google.co.in">my link
<asp:LinkButton>

its works for me
AmitGupta#Developer 17-Oct-16 6:31am    
Not working .. I am getting "Webpage has expired" while hitting IE back button .
F-ES Sitecore 17-Oct-16 4:56am    
What happens if you delete the lines of code you've pasted?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900