Question : Opening a new window with window.showModalDialog

Hi All,
         In ASP.NET , I am using window.showModalDialog method to open a modal window. But when I try to do some processing in the modal window, it opens up another window. Like I have to do search for the value entered in the textbox on modal window. when I press Search, it opens up a new window displaying the results. Can the results be displayed in the same Modal window itself.
 
Pls help it's urgent.

Thanx and Regards
Inderjeet

Answer : Opening a new window with window.showModalDialog

showModalDialog can't do that I'm afraid - it can only pass back single scalar values to the parent window, so can't open up links in itself, only in new windows.

There are workarounds, though.

You can use window.open with onblur="window.focus();" and maybe a onload="window.focus();" or maybe call that from the parent window, which will give the same effect.  If you're feeling crazy then you might like to look at the following article, which has some interesting ideas...

http://www.lotusgeek.com/SapphireOak/LotusGeekBlog.nsf/plinks/ROLR-5QT5TD
Random Solutions  
 
programming4us programming4us