title: How can I pass the Web Content Form data to a PlaceHolder in a UserControl
body: <p>first time here on StackOverflow and it's a pleasure to be here, hope to have a nice time with all off you and to help with anything I can.</p>
  
  <p>Well the question I'm asking is just what I have put in the title, the thing is I'm using a Master Page with four User Controls to fill the Master Page witch works fine,but in one of the User Controls (Principal.ascx) I have put a PlaceHolder with witch I wish to change the data in it depending on the page that is being loaded, per example if I wish to load the Register Employee page, I would send that to the placeholder and show it or if I wish to load the login page I would send that to the place holder and show it. So the code I'm handling is:</p>
  
  <p>MasterPage:</p>
  
  <pre><code>&lt;%@ Register Src="~/UserControl/Head.ascx" TagName="Head" TagPrefix="hdr" %&gt;
  &lt;%@ Register Src="~/UserControl/Foot.ascx" TagName="Foot" TagPrefix="ftr" %&gt;
  &lt;%@ Register Src="~/UserControl/Menu.ascx" TagName="Menu" Tagprefix="mnu" %&gt;
  &lt;%@ Register Src="~/UserControl/Principal.ascx" TagName="Principal" Tagprefix="prn" %&gt;
  
  &lt;link rel="Stylesheet" type="text/css" href="~/Css/Styles.css" /&gt;
  &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt;&lt;/asp:ContentPlaceHolder&gt;
   &lt;/head&gt;
  &lt;body&gt;
     &lt;form runat="server" id="MainForm"&gt;
        &lt;div class="Container"&gt;
          &lt;hdr:Head runat="server" ID="hdrHead" /&gt;
          &lt;mnu:Menu runat="server" ID="menMenu" /&gt;
          &lt;prn:Principal runat="server" ID="priPincipal" /&gt;
          &lt;ftr:Foot runat="server" ID="ftrFoot" /&gt;
        &lt;/div&gt;
     &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>There is no code behind on the master page yet.</p>
  
  <p>And on the Menu UserControl is a simple menu managed using JQuery UI, after I'm able to make the login page work with the UserControl I will try to make this menu dynamic and only show menu levels that are relevant to the user that access the page:</p>
  
  <pre><code>&lt;link rel="Stylesheet" type="text/css" href="../Css/jquery-ui-1.10.0.css" /&gt;
  &lt;script src="../Js/jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="../Js/jquery-ui-1.10.0.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(function(){
  $("#menu").menu();
  });            
  &lt;/script&gt;
  
  &lt;div class="MenuContainer"&gt;
     &lt;span style="margin: 20px 10px; padding: 5px;"&gt;
         Bienvenido, Usuario.
     &lt;/span&gt;
  &lt;div class="Menu"&gt;
      &lt;ul id="menu"&gt;
      &lt;li&gt;&lt;a href="#"&gt;Inicio&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Base de Conocimientos&lt;/a&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Vista general&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Agregar&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Documentaci&amp;oacute;n HGI&lt;/a&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Documentos&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Agregar&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Beneficios&lt;/a&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Medio d&amp;iacute;a libre&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Vacaciones&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Mantenimiento&lt;/a&gt;
          &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;C&amp;oacute;digos&lt;/a&gt;
          &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Vista General&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Agregar&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;/li&gt;  
          &lt;li&gt;&lt;a href="#"&gt;Configuraciones&lt;/a&gt;
          &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Vista General&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Agregar&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;/li&gt;    
          &lt;/ul&gt;   
      &lt;/li&gt;                            
      &lt;li&gt;&lt;a href="#"&gt;Salir&lt;/a&gt;&lt;/li&gt;   
      &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the UserControl where I want to load the content is calles Principal.ascx:</p>
  
  <pre><code>&lt;div class="Contenido"&gt;
      &lt;asp:PlaceHolder runat="server" ID="PlaceHolder"&gt;
  
      &lt;/asp:PlaceHolder&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I wish to display in the place holder a test text has fallows from the page default.aspx:</p>
  
  <pre><code>&lt;span&gt;
      This is the test.
  &lt;span/&gt;
  </code></pre>
  
  <p>none of the UserControls or the MasterPage have any type of code on there .cs pages.</p>