My situation involves a parent web page where I open a new window using JavaScript. The new window is an ASP.NET server-side page that needs to save data in the database and return an ID after saving it. Now, the challenge is passing this ID from the child server page back to the parent's JavaScript.
I essentially require the child server code to: 1) Return the value to the JavaScript code of the parent page 2) Close itself
What would be the best approach to achieve this?