Hi,
You can either do this:
btnOK.Attributes.Add("onclick", "window.close(); return false;")
Or, if you need to post back to the Modal page before closing it you can do
this:
Response.Write("<script language='javascript'>window.close();</script>")
Remember, when you post back to a Modal page you must put: <BASE
target="_self"> in the <head> section of the HTML on that page. Good luck!
Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
"pTsy" <pt******@bna.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl...
1)There is a simple AS.NET page with only ONE button - "Ok"
2) There is a html page where i call the ASP.NET page described above
and run it in new instance of IE using window.showModalDialog(...)
3) How to close this ModalDialog when user press button OK on the ASP.NET
page
Please, provide sample code
Thanks