How do you refresh a page in codebehind
Posted on 2011-10-19
PageA has a repeater which displays some number of rows from a table. After the repeater on PageA I have a textbox and an "Add" button. I enter some text into the textbox and click on the "Add" button. In the codebehind for the "Add" button I insert the data from the textbox into the table used by the repeater and then I open PageB which displays the detail information. At some point in the codebehind for the "Add" button I need to refresh PageA so that the new information I inserted into the table is displayed by the repeater and then go to PageB.
My code in the Add button is:
ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.open('CustomerDetailForm.aspx?Cust_Code=" + strCustCode + "','_blank','menubar=no')", True)
Whatever is first in the code above happens but not the second.
How do I refresh PageA and also get to PageB?