title: Webforms: how to specify different content for a given masterpage
body: <p>Given this markup in an ascx file :</p>
  
  <pre><code>        &lt;div class="DocumentPara"&gt;
              &lt;%#Eval("Content1").ToString%&gt;
              &lt;%#Eval("Content2").ToString%&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Is there a syntax I can use to chose the display of "Content1" and "Content2" depending of which masterpage is calling?. I.e. :</p>
  
  <pre><code>        &lt;div class="DocumentPara"&gt;
              &lt;%#Eval("Content1").ToString%&gt;
              &lt;If masterpage1&gt;
                 &lt;%#Eval("Content2").ToString%&gt;
              &lt;/endIf&gt;
              &lt;If masterpage2&gt;
                 &lt;%#Eval("Content3").ToString%&gt;
              &lt;/endIf&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Thanks for your help.</p>