i have page1.aspx with a grid and ADD button
when i click ADD page2.aspx opens in a new window
when new records an be added
when i save the record it gets added to database as well as page2.aspx closes
wht i need is when page2.aspx closes page1.aspx shld get refeshed and the new added record dispalyed in grid
i have the following code
-- now on the html
when i click ADD page2.aspx opens in a new window
when new records an be added
when i save the record it gets added to database as well as page2.aspx closes
wht i need is when page2.aspx closes page1.aspx shld get refeshed and the new added record dispalyed in grid
i have the following code
Code:
Dim strscript As String = "<script language=javascript>refreshandclose();</script>" If (Not Page.IsStartupScriptRegistered("clientScript")) Then Page.RegisterStartupScript("clientScript", strscript) End If
Code:
<head> <script language='javascripts'> function refreshandclose() { window.top.parent.location = 'parent.aspx'; window.setTimeout('window.top.close();', 1000); } </script> </head>
Comment