title: Load User control with Query string
body: <p>My requirement is like i need to load a n number of user controls using asp Repeater. </p>
  
  <pre><code>List&lt;string&gt; userControlList = new List&lt;string&gt;();
  userControlList.Add("~/WebUserControl2.ascx");
  userControlList.Add("~/WebUserControl.ascx");
  Repeater1.DataSource = userControlList;
  Repeater1.DataBind();
  </code></pre>
  
  <p>And in the ItemDataBound, I am loading the user control using Page.LoadControl.</p>
  
  <pre><code>string userControlLink = e.Item.DataItem.ToString();
  e.Item.FindControl("ItemPanel").Controls.Add(Page.LoadControl(userControlLink));
  </code></pre>
  
  <p>Here, I need to send parameters to some user control by which the control will be loaded.
  I am not able to use properties because i can't type cast it at run time.</p>
  
  <p>Is there any other way by which i can send some parameters to user control?
  I tried with query string, but it resulted in run time exception.</p>