i have usercontrol(ascx) in asp.net
and place it to content page
what i want to do
there is a button on my content page when click on it
so usercontrol(ascx) appear in ajax modal popup
how to do this ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Upamanyu Roy Choudhury146 reputationPosted Feb 20, 2013, 8:56 PM EST
The concept of using a modal popup extender is simple.
I have attached a source code where I have shown how to use an user control and show its contents in a modal popup.
The idea is that have a css for modal popup background
Add a panel which will hold the contents of the popup ( put the user control inside panel),it will be the PopUpControlID
A hyperlink control which will invoke the modal popup,which is the TargetControlID
Please go through the code and let me know how is it going.
Run it and see the effect.
Upamanyu Roy Choudhury146 reputationPosted Feb 20, 2013, 9:03 PM EST
Attached is the user control ModalControl.ascx.