Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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,280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 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