ModalPopup web user control [Resolved]

Posted by Vatcharm under Design Pattern & Practices on 2/16/2010 | Views : 4483 | Status : [Member] | Replies : 2
Dear Guru
How to use modalpopup in web user control and call it througth main page.
exp: -TargetcontrolID ?
-PopupContgrolID ?

Thank you.




Responses

Posted by: Vuyiswamb on: 2/17/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down

Resolved
if you want to access the properties of the Contained Control from the hosting page you must expose the Properties of that Control. like this



public ModalPopupExtender ModalPopup
{
set
{
TargetcontrolID = value;

}
}


The Bolded part is the Control class type you want pass as a parameter.

Thank you for posting at Dotnetfunda
[Administrator]

Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 2/18/2010 [Member] Bronze

Up
0
Down

Resolved
Vuyiswamb is correct.

You can even implement it in client side

http://www.karpach.com/ModalPopupExtender-Example.htm

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Vatcharm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response