Refresh first page grid data when comming back from second
How to refresh the first page grid data when i am comming from the second page and in my second page i am inserting data to the database
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Jul 25, 2013, 8:26 AM
we could disable the page cache. Then if we click the back button in the browser, the page will re-execute the page_load event to refresh the page.
The ex code is shown below.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Response.Buffer = true;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.Expires = -1441;
}
}