Solved

Fire ModalPopupExtender without a button click

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

13 Experts available now in Live!

Get 1:1 Help Now