I am developing an app in Visual Web Developer 2005 Express. I have a page I'll call the Main page. On this page I have put a webcontrols.menu control. The first menu item has its NavigateUrl field set to ~/AddRide.aspx. I click on this menu item to bring up a second window where the user can enter data to add a new record to the database with the Submit button. When the user clicks the Submit button I want AddRide.aspx to close and then the Main page to update with the new record. In VS2003 I did this with
Response.Write("<Script> window.opener.location=window.opener.location; window.close(); </script >")
in the CodeBehind file. It doesn't work in Visual Web Developer 2005 Express. I think it's because of the way I'm opening the AddRide.aspx window. In VS 2003 I opened that window with:
Dim strPop As String
In Visual Web Developer 2005 Express I'm opening the AddRide.aspx window with the webcontrols.menu control. So my question is if I open the window with the webcontrols.menu control how can I close it and update the Main page.
Thanks for any help you can provide in my learning experience.