I have an ascx control I would like to reuse and target as my modalpopup. I am assuming this is possible but have only read of using a control within the same page. Would I create my ascx and place an instance of it on my aspx page then reference that
control id in the modalpopup? If so, then how would I pass the values from that ascx control to the aspx page? For instance, the ascx control is a lookup for an ID. There is a few textboxes to look/filter by first and last name, then the results are placed
in a gridview. When the user selects their name in the gridview it should pass the ID, first and last name back to the aspx page.
Sounds simple but I haven't dealt a lot with the toolkit.
Thanks
Remember to mark as answer if this post answered or solved your problem.
Hi b471code3 We can show or hide a Modal Popup by the following JavaScript code, which you can use in your ASCX control to manage the Modal Popup: $find(“BehaviorIDofMPE”).show(); $find(“BehaviorIDofMPE”).hide(); Thanks.
b471code3
Star
13877 Points
2598 Posts
Target ASCX file for ModalPopup
Feb 05, 2009 09:22 PM|LINK
I have an ascx control I would like to reuse and target as my modalpopup. I am assuming this is possible but have only read of using a control within the same page. Would I create my ascx and place an instance of it on my aspx page then reference that control id in the modalpopup? If so, then how would I pass the values from that ascx control to the aspx page? For instance, the ascx control is a lookup for an ID. There is a few textboxes to look/filter by first and last name, then the results are placed in a gridview. When the user selects their name in the gridview it should pass the ID, first and last name back to the aspx page.
Sounds simple but I haven't dealt a lot with the toolkit.
Thanks
Lance Zhang ...
All-Star
33091 Points
2361 Posts
Re: Target ASCX file for ModalPopup
Feb 10, 2009 06:35 AM|LINK
Hi b471code3
We can show or hide a Modal Popup by the following JavaScript code, which you can use in your ASCX control to manage the Modal Popup:
$find(“BehaviorIDofMPE”).show();
$find(“BehaviorIDofMPE”).hide();
Thanks.