I have a aspx page that pops up a new window to edit some info. When the user is done editing they click save and at the end of the save event I have this C# code:
Context.Response.Write("<script type='text/javascript'>window.parent.location.reload(true);window.frameElement.commitPopup();</script>");
Context.Response.Flush();
Context.Response.End();
So that the parent page will refresh and display the updated info. My problem is that if I have done some other action on the previous page that caused a postback, the code above will try to redo that postback (attempting to delete an item for instance).
Is there some way that I can update my information on the parent page without redoing the last postback?
Why not just load the same page with a random parametre, to force the load, but not make reload that make and post back
Now if your href have all ready other parametres, you can add &rnd.
If you make many reloads you can replace the rnd like this:
Also you can do