MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Posting from a modal dialog

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
abb



Joined: 28 Feb 2008
Posts: 2

PostPosted: Wed Feb 27, 2008 10:23 pm    Post subject: Posting from a modal dialog Reply with quote

I have a modal dialog to edit a Notes field. When the Save button is
pressed, that field should save the Notes, close the dialog and leave
the parent window unchanged (don't refresh or post).

How can I accomplish that?

Posting from the modal dialog always pops up a new browser window.
And submitting from the parent sends the entire form (not just the
notes). Ideas?

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
Mark Rae [MVP]



Joined: 08 Aug 2007
Posts: 29

PostPosted: Thu Feb 28, 2008 6:40 am    Post subject: Re: Posting from a modal dialog Reply with quote

"abb" wrote in message @n77g2000hse.googlegroups.com...

>I have a modal dialog to edit a Notes field. When the Save button is
> pressed, that field should save the Notes, close the dialog and leave
> the parent window unchanged (don't refresh or post).
>
> How can I accomplish that?

I'm not quite sure what the problem is here... If you pop a modal dialog
(presumably you're using the non-standard window.showModalDialog method),
closing that dialog won't cause the parent window to refresh or post back
unless you explicitly code it...

> Posting from the modal dialog always pops up a new browser window.

Put the following in the header of the dialog window:



Try to avoid showModalDialog - they work only in IE and Safari...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Back to top
View user's profile Send private message
abb



Joined: 28 Feb 2008
Posts: 2

PostPosted: Wed Feb 27, 2008 11:10 pm    Post subject: Re: Posting from a modal dialog Reply with quote

Yes, I'm using showModalDialog to pop up the window. But when the
popup submits, it always opens a new browser window even with
target="_self". I read somewhere that there is no way to prevent that
behavior with a modal dialog. Is that incorrect?

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
popup dialog opening in max size Hello, I have a asp.net page which has a button and on selection of which i open a small size popup dialog. the dialog has few input parameters and a default button. when i click on the default button the input parameters are initialized with default valu

How to get the current running modal dialog of my applicatio I have shown a modal dialog, it works well commonly. But when I watch programs from ¡°Running Program List¡± panel, with the modal dialog shown, there are two program names listed for the application. One is the title of the main form; another is the titl

posting i need to post a message from one asp.net page to another,that mesage may be 1000 character..is it possible.can any help me plz thx in advance siva

Problem opening several modal forms Hello My application opens several modal forms (the modal Form1 opens the modal Form2 that opens the modal Form3 and so on), but, the third and the successives modal forms.... are not modal!!! Seems that there's a maximum number of modal forms, is it poss

Error interoping with non-modal forms Here's what I'm trying to do: I have a .NET app (exe) that's instantiating a COM dll's object. That COM object, in turn, loads and displays a VB6 form, non- modally. When running this code through VB6's IDE, it works fine. When trying to run it throug
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group