↑ Grab this Headline Animator

Thursday, July 10, 2008

How to load a user control dynamically at runtime?

Control c = (Control)Page.LoadControl("~/usercontrol/MyUserControl.ascx");


Instead of adding this user control into the Form you can add into Panel too so that you can position it at your desired location. In that case you need to delcare a panel in the .aspx page and write following code.


Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles