Window.Close

  • Thread starter Thread starter Ken Webster
  • Start date Start date
K

Ken Webster

I've got a modal window open and I want to close it depending on the results
of a calculation on the server (i.e. no button click event to work with).
Can this be done? If so, how?

Thanks...
 
When do you know about the result of calculations before you opened the
window or after?
Shimon
 
Try this...

if (<condition>)
{
RegisterStartupScript("ClosePopup", "<script>window.close()</script>");
}

HTH,
 

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