close window in server code?

  • Thread starter Thread starter Marcel Balcarek
  • Start date Start date
M

Marcel Balcarek

I have a sub-window. When I click 'OK' I want to:
post back to to my server code, persist some data and close the sub-window.

I don't know how to close the subwindow in server code.

Marcel
 
reply back with simple HTML
<html>
<body>
window.close();
</body>
</html>


If this is a window that was opened by window.open then it will be closed
without prompt.

George.
 
Thanks George,

But how do I send this code from the server using code behind?
Do I use the response object? a Write method?
I am unclear about how this code is to replace the normally generated client
HTML.

Marcel
 
Not sure that i understood your problem.
How do you output any HTML to the browser.
Exactly the same way you can output that particular HTML.

Use Response.Write or just put that HTML code into aspx file.

George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top