Solved

How do I force a ModalPopupExtender panel button to do a postback to call an event handler function?

Posted on 2009-07-01
2
1,264 Views
Last Modified: 2013-12-17
How do I force a ModalPopupExtender panel button to do a postback to call an event handler function?

I tried putting the Event Handler functions name in the OnClick of the button.  I then tried to force a postback with theform.submit() but this surpasses the Validation on the page and Page.IsValid is false.

Thanks!
0
Comment
Question by:Bruce
2 Comments
 
LVL 15

Expert Comment

by:mohan_sekar
ID: 24757688
I don't get it! Could you post relevant sections of your code and explain the problem again?
0
 
LVL 1

Accepted Solution

by:
Bruce earned 0 total points
ID: 24757778
I figured it out.  I removed the OKControlID from the ModalPopupExtender and that lets my "OK" button do what it would normally do and

I am using the MPE as an enhanced Confirmation button.  A few questions for the user before the page gets submitted.  So, when the users clicks "Save" on the page I check some things and show the MPE panel to ask a couple more questions before I submit the page.  If the OKControlID attribute is set all that happens is the popup closes.  If I leave it unset then the button on the popup works as it would on the page and forces a postback to the event handler function I have set on the OnClick of the button.

Does that make sense?  I want to be clear in case someone else is in the same situation
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question