title: Passing parameters to a User Control
body: <p>We are trying here to localize our user control basically we want to be able to do something like this : </p>
  
  <pre><code>&lt;in:Banner runat="server" ID="banners" Lang="fr" /&gt;
  </code></pre>
  
  <p>The way we do this is by page level and send it to master that then send it to the control:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      Master.Lang = "FR";
  }
  </code></pre>
  
  <p>Then in the MasterPage.master we do something like this : </p>
  
  <pre><code>&lt;in:Banner runat="server" ID="banners" Lang="&lt;%= Lang %&gt;" /&gt;
  </code></pre>
  
  <p>The masterpage has a public proprety named Lang.</p>
  
  <p>In the control we have set a field that contains the default language and a proprety (Lang) that set the language. It seems that whatever we do, the current language is not sent from the page to the usercontrol... any help?</p>