Solved

Fire ModalPopupExtender without a button click

Posted on 2009-05-12
2
583 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 500 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 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