S
SimonZ
When user insert some data on page and click save button this data is
inserted to database.
If he clicks refresh button, the data is saved again each time when he
clicks this button.
I would like to prevent refresh from that page, so I inserted the following
lines in code behind on page_load event:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
HtmlMeta metaTag= new HtmlMeta();
metaTag.HttpEquiv = "Pragma";
metaTag.Content = "no-cache";
Header.Controls.Add(metaTag);
HtmlMeta metaTag1 = new HtmlMeta();
metaTag1.HttpEquiv = "expires";
metaTag1.Content = "0";
Header.Controls.Add(metaTag1);
But this won't work. Any idea howw to prevent user to insert the same data
twice(or even more times) with refreshing the page?
regards, Simon
inserted to database.
If he clicks refresh button, the data is saved again each time when he
clicks this button.
I would like to prevent refresh from that page, so I inserted the following
lines in code behind on page_load event:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
HtmlMeta metaTag= new HtmlMeta();
metaTag.HttpEquiv = "Pragma";
metaTag.Content = "no-cache";
Header.Controls.Add(metaTag);
HtmlMeta metaTag1 = new HtmlMeta();
metaTag1.HttpEquiv = "expires";
metaTag1.Content = "0";
Header.Controls.Add(metaTag1);
But this won't work. Any idea howw to prevent user to insert the same data
twice(or even more times) with refreshing the page?
regards, Simon