By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,482 Members | 3,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,482 IT Pros & Developers. It's quick & easy.

dialogbox postback problem

P: n/a
When i show a webform as a dialogbox using showModalDialog
script any postback event in dialogbox cause a new window
pops up .
How can i control the postback?
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

I've faced the same challenge. For now I have needed to use non-modal window
(normal pop-up window) to do the job.

Reason for the behavior is probably somewhere due to that opening a modal
client-side window also halts the execution of client-side code that opened
the window for as long as the modal window is closed(think of the modal
window as if it runs in the same context as the window that opened it).
Modal window's opener property is null for example, so as if it would be
treated as part of the opening (calling) code, even though opened page can
be physically different page. New window is opened because modal window
needs to be closed at client-side to let the calling code to run again (and
optionally do something with the return value from modal window)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"majid" <ma******@yahoo.com> wrote in message
news:08****************************@phx.gbl...
When i show a webform as a dialogbox using showModalDialog
script any postback event in dialogbox cause a new window
pops up .
How can i control the postback?

Nov 17 '05 #2

P: n/a
Hi,
you can get around this by having the webform (or html
page) that is the dialogbox displaying an <IFRAME> tag
which has your actual page that needs to postback as its
source. The dialog page never actually posts back so you
don't have to deal with the new window behaviour.

alex
-----Original Message-----
When i show a webform as a dialogbox using showModalDialogscript any postback event in dialogbox cause a new windowpops up .
How can i control the postback?
.

Nov 17 '05 #3

P: n/a

Thank you for guide.
Can you give me some more informaion .
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.