title: How to load user control given its type
body: <p>Is there a way to instantiate and use a usercontrol (.ascx) if given you have its Type (ie. <code>typeof(MyUserControl)</code>)?</p>
  
  <p>With regular asp.net controls like a textbox or a dropdownlist you can just make a new instance and add it to a controls collection.  This doesnt appear to work for User controls.  While you can make a new instance and add it to a collection, and have all of its events fire, it will not actually render to the page.  Typically you would call <code>Page.LoadControl()</code> with the path to the .ascx</p>
  
  <p>This presents a problem if all you have is its type.  How can you get the path to the .ascx to give to the <code>LoadControl</code> method.  Ideally I would also like to not have to have a reference to the Page object</p>