I am trying to set a page to refresh after adding some data to it's underlying database. However, I am also notifying the user that the insertion has been made via a popup window, which is generated by the following code:
private void addedPopup()
{
String strPop = "<script language='javascript'> alert('" + selectedAdNums.Count() + " student(s) added.') </script>";
selectedAdNums.Clear();
ClientScript.RegisterClientScriptBlock(strPop.GetType(), "Pop", strPop);
}
I have tried using Response.Redirect(<pagename>) before and after calling the addedPopup, but both prevent the popup. I also tried using a flag for whether the page needs refreshing or not, checking this flag in the Page_Load method, but due to the page lifecycle this obviously doesn't work.
How can I force a page refresh after the popup? The refresh is to update ...
Go to the complete details ...