Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ShowDialogModal postback on close (this is not related to multiple dialogs opening upon postback)

Reply
Thread Tools

ShowDialogModal postback on close (this is not related to multiple dialogs opening upon postback)

 
 
Jacky Chau
Guest
Posts: n/a
 
      06-08-2005
I have a modal dialog opened using window.showModalDialog. When that
modal dialog closes, it causes the parent form to postback. Is there
any way to stop it from forcing the parent page to postback? There's no
need for the parent page to postback when receiving data from the modal
dialog.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      06-08-2005
you've probably tired the open window to a submit button, this is what cause
the the postback (has nothing to do with the open window). just cancel the
postback

<input type="button" onclick="doWindowStuff();return false;">

-- bruce (sqlwork.com)

"Jacky Chau" <> wrote in message
news:O9qOv$...
>I have a modal dialog opened using window.showModalDialog. When that
> modal dialog closes, it causes the parent form to postback. Is there
> any way to stop it from forcing the parent page to postback? There's no
> need for the parent page to postback when receiving data from the modal
> dialog.
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
 
 
 
Ninjamyst
Guest
Posts: n/a
 
      06-08-2005
Yea. Originally, I had onclick="someFunction()" and the function
returns false. Didn't know i have to do onclick = "return
someFunction()". Thanks!



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) IƱaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
How frowned-upon is not doing *.Close()? TJ ASP .Net 2 10-12-2006 01:30 PM
How should multiple (related) projects be arranged (structured) and configured so that they can share code, have a related package structure and enable proper unittesting, and ensuring no namespace collisions ToddLMorgan@gmail.com Python 14 04-21-2006 04:03 PM
Forcing postback on a web dialogs opening window SkeanDu ASP .Net 6 06-17-2005 08:04 PM
showDialogModal and arguments andrei ASP .Net 2 07-11-2003 06:28 PM



Advertisments