Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i have got a dialog box with two buttons Submit and Cancel.When i click the submit button some process is done and shows "options saved" as message and closes the dialog.When i again open the dialog the message "options saved" is showing instead of Submit and Cancel button.How can i solve this?
Posted
Comments
Rajesh Anuhya 1-Dec-10 2:25am    
can you provide me some code.

1 solution

I think the issue is due to the cache.
The dialoge displays the previous cached page again.
You can try by clearing the history/cache of the browser.
To implement in the page, you must clear the cache in the page load event of the dialoge box.

Try using this code (ASP .net C#)

MIDL
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetExpires(DateTime.Now - new TimeSpan(1, 0, 0));
HttpContext.Current.Response.Cache.SetLastModified(DateTime.Now);
HttpContext.Current.Response.Cache.SetAllowResponseInBrowserHistory(false);
 
Share this answer
 

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