Solved

Fire ModalPopupExtender without a button click

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web site error 3 36
ASP.net VB.net Highlight html text in yellow in body of email 5 21
jquery datepciker end date add 6 days 6 33
List<PaisEntity> - show some 1 24
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 …
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

806 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