2009-07-14 4 views

答えて

0

MasterPagesのContentPlaceHolderを「空白を埋める」と考えてください。あなたが探しているものは、ユーザーコントロールのラインに沿っていると思います。ユーザーコントロールは、必要な場所にプラグインできるコンテンツ/機能です。

0

あなたは(非常に簡単なはずです)、ユーザーコントロールにInfo.aspxの内容を変えることができます方法は、

ので、これは解決する簡単な問題であれば

、そこに入れた場合、その上のプレースホルダで新しいASCXマスターページ。 Masterで

<div class="mainContent"> 
    <!-- Each Page Content Will Go Here --> 
    <asp:ContentPlaceHolder ID="cph_MainContent" runat="server"> 
    </asp:ContentPlaceHolder> 
</div> 

<div class="bottomContent"> 
    <asp:ContentPlaceHolder ID="cph_BottomContent" runat="server"> 
     <!-- Each Page will Display this UNLESS it referenced this placeholder --> 
     <!-- Put you INFO.ASCX control here --> 
    </asp:ContentPlaceHolder> 
</div> 

その後、あなただけのコンテンツページに第二プレースホルダ用のタグをコメントアウトまたは削除:あなたが欲しい

<asp:Content ID="Content2" ContentPlaceHolderID="cph_MainContent" runat="server"> 
you page content 
</asp:Content> 

<%-- 
this will make the master use the content inside the holder on its own page 

<asp:Content ID="Content3" ContentPlaceHolderID="cph_BottomContent" runat="server"> 

</asp:Content> 
--%> 
関連する問題