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,233 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now