Event handling in modal dialogs

W

wendy

I have got a problem while using the modal dialogs. In my code I need
to open a modal dialog from the parent page and I need to enter some
values in the dialog and save it. It takes the values properly and also
does the validation of the values but it doesn't hit the event handler
of the button where it is supposed to save those values and close the
box.
Any help is appreciated.
Thanks
 
F

Frankie

Does your page work as expected when it is NOT opened as a modal dialog? If
not, then get it to work that way first (i.e., open it as a normal aspx page
and not as a modal dialog). Then, once that works, test it as a modal
dialog. If you are expecting PostBacks to work when the aspx is opened as a
modal dialog, you will likely have to make your modal dialog open the aspx
page in a frameset or in an iframe. I can't explain why, but I had trouble
getting modal dialogs to post back and behave as expected. The advice from
MVPs in this group was to open it in a frameset or iframe. It then worked
(postbacks and all).

-HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top