Given this markup in an ascx file :

        <div class="DocumentPara">
            <%#Eval("Content1").ToString%>
            <%#Eval("Content2").ToString%>
        </div>

Is there a syntax I can use to chose the display of "Content1" and "Content2" depending of which masterpage is calling?. I.e. :

        <div class="DocumentPara">
            <%#Eval("Content1").ToString%>
            <If masterpage1>
               <%#Eval("Content2").ToString%>
            </endIf>
            <If masterpage2>
               <%#Eval("Content3").ToString%>
            </endIf>
        </div>

Thanks for your help.

Related posts

Recent Viewed