I'm just new ASP .NET, and I would like to know on how can I clear all the data entries after saving it and redirected to other page?
I have tried this on my HTML page,
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
and also this on my Code Behind page,
protected void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
Response.Cache.SetCacheability(HttpCacheability.Server);
Response.Expires = -1;
Response.AddHeader("Pragma", "No-Cache");
Response.CacheControl = "no-cache";
}
}
but still the data I encoded / page appears whenever I go back.
Please help. Greatly appreciate. Thank you. :D