I have a custom form which has a gridview embedded in it and also a button that redirects to an other form. When the user fills the other form and saves it, it gets updated in the grid view in first form.
My problem is that when user fills up the data in first form and navigates to the 2nd form and returns the data entered in first form is lost. How do I save it even though user is actually not saving it? Is modal dialog way to go?
I tried this but I am losing form data,
In Page Load:
ViewState["PreviousPage"] = HttpContext.Current.Request.UrlReferrer.ToString();
On Button Click in 2nd form: