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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Upamanyu Roy ChoudhuryPosted Feb 21, 2013, 2:03 AM
Attached is the user control ModalControl.ascx.
Upamanyu Roy ChoudhuryPosted Feb 21, 2013, 1:56 AM
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.