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

x
?
Solved

Fire ModalPopupExtender without a button click

Posted on 2009-05-12
2
Medium Priority
?
592 Views
Last Modified: 2012-05-06
Is there a way to fire the ModalPopupExtender without having to use the TargetControlID with a button click. I would like to use code to fire the ModalPopupExtender. Is that possible?
THanks
0
Comment
Question by:mutlyp
2 Comments
 
LVL 9

Accepted Solution

by:
tetorvik earned 2000 total points
ID: 24371370
You can use Show / Hide methods to control externder visibility.
*.cs (code-behind):
YourExtenderControl.Show();
YourExtenderControl.Hide(); 
 
javascript:
YourExtenderControl.show();
YourExtenderControl.hide(); 

Open in new window

0
 
LVL 16

Expert Comment

by:burakiewicz
ID: 24378781
you will still need to set the targetcontrolID but add this to the buttons style so you dont see it
style="visibility:hidden;"
if you set visible to false it will not render the control and cause an error
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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to implement server side field validation and display customized error messages to the client.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

824 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