Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
1,292 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

772 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