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
Expand|Select|Wrap|Line Numbers
- Dim strscript As String = "<script language=javascript>refreshandclose();</script>"
- If (Not Page.IsStartupScriptRegistered("clientScript")) Then
- Page.RegisterStartupScript("clientScript", strscript)
- End If
Expand|Select|Wrap|Line Numbers
- <head>
- <script language='javascripts'>
- function refreshandclose()
- {
- window.top.parent.location = 'parent.aspx';
- window.setTimeout('window.top.close();', 1000);
- }
- </script>
- </head>