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,255 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

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:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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