p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: modal dialog driving me crazy !!!!


Message #1 by "Pant, Nishant" <NPant@H...> on Wed, 19 Mar 2003 17:44:01 -0500
Hi,

short Q. I hv a window which pops up a modal dialog box which as a save
button which goes to server to save when pressed. my prob is that after it
goes to server a new browser window opens with the popup aspx page again. 
i.e I end up with 2 popup pages (the 2nd page is not a popup since it opens
in a full window)

PS: No, I dont have any target attribute in the FORM tag, i didnt even touch
the form tag in my popup aspx page.

- Thanks in advance
Nishant Pant 
Message #2 by "Pant, Nishant" <NPant@H...> on Thu, 20 Mar 2003 14:58:32 -0500
Folks,

This is my finding (not sure if it is correct though):
If u try to post a modal dialog box the server it will always open a new
window. Use window.open instead. But if u absolutely do need modal
functionaility then open the dialog close it and  return the value to its
parent using window.returnValue. Then the parent can either do an XMLHTTP or
hidden frames to go to the server to save it.

-Nishant Pant



-----Original Message-----
From: Pant, Nishant
Sent: Wednesday, March 19, 2003 4:44 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] modal dialog driving me crazy !!!!


Hi,

short Q. I hv a window which pops up a modal dialog box which as a save
button which goes to server to save when pressed. my prob is that after it
goes to server a new browser window opens with the popup aspx page again.
i.e I end up with 2 popup pages (the 2nd page is not a popup since it opens
in a full window)

PS: No, I dont have any target attribute in the FORM tag, i didnt even touch
the form tag in my popup aspx page.

- Thanks in advance
Nishant Pant

---
Professional Design Patterns in VB.NET:
Building Adaptable Applications

Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.

http://www.wrox.com/books/1861006985.htm
<http://www.wrox.com/books/1861006985.htm> 

---
Change your mail options at http://p2p.wrox.com/manager.asp
<http://p2p.wrox.com/manager.asp>  or




  Return to Index