Solved

Fire ModalPopupExtender without a button click

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hangfire / asp.net sample 3 27
codeIgniter ajax post path question 4 39
crm development 2 35
Problem to page 4 17
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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