Click here to Skip to main content
15,867,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I use Ajax Popup Extender at run time Or Programmatically??
Posted
Comments
Brij 24-Dec-10 13:14pm    
what do you mean by at runtime? Have the extender at your page and open it whenever required. or Can you explain your problem in bit detail?
Sunasara Imdadhusen 24-Dec-10 23:34pm    
Please explain in detail!!
maq_rohit 25-Dec-10 12:31pm    
Explain ..what is your objective?
thatraja 25-Dec-10 23:54pm    
confusing question...clear the things

1 solution

It is simple. You can use it as you use normal controls at runtime.

It will be something like below:
C#
AjaxControlToolkit.ModalPopupExtender mpop = new AjaxControlToolkit.ModalPopupExtender();
            mpop.TargetControlID = ""; //Control which will activate it
            mpop.PopupControlID = ""; //Control that will show in it
            mpop.CancelControlID = ""; //Button that will hide it
            this.Controls.Add(mpop);



Hope that helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900