Adding UserControl Dynamically and Set Properties in Asp.net
Adding UserControl Dynamically and Set Properties in Asp.net
ucMyUserControl ucUser = (ucMyUserControl )LoadControl(“~/folder/MyUserControl.ascx”); ucUser.MyProperty = “I got my property”; MyDiv.Controls.Add(ucUser);
For More Details Visit : http://www.highonmicrosoft.com/dynamically-loading-and-accessing-the-properties-of-the-user-control.html http://stackoverflow.com/questions/213429/programmatically-adding-user-controls-inside-an-updatepanel http://geekswithblogs.net/samerpaul/archive/2009/11/13/dynamically-adding-web-user-controls-and-accessing-their-properties-by.aspx http://stackoverflow.com/questions/508826/set-properties-on-dynamically-added-usercontrol
Categories: Asp.net
: asp.net, Add usercontrol dynamically in asp.net, codebehind, dynamic usercontrol from codebehind, loading user control dynamically, properties, properties in dynamic usercontrol, set properties on dynamically added usercontrol, update panel, usercontrol, usercontrol dynamic, web user control
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Recent Comments