adspace


How to load a user control dynamically in runtime?

Answer Posted / Mohd.asif

To load a UserControl dynamically at runtime, you can use the LoadControl method of the Page class. Here's an example:nnUserControl myControl = (UserControl)Page.LoadControl("~/PathToTheUserControl.ascx");

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1141