Mega Code Archive

 
Categories / ASP.Net / User Control And Master Page
 

Two pieces of contentplaceholder

<%@ page language="C#"           MasterPageFile="~/Default.master"           Trace="true" %> <asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server">     Here's some text! </asp:content> File: Default.master <%@ master language="C#" %> <html> <head id="Head1" runat="server">     <title>Untitled Page</title> </head> <body>     <form id="Form1" runat="server">         <table>             <tr>                 <td colspan="2">                     <h1>My Little Company</h1>                 </td>             </tr>             <tr>                 <td>Navigation?</td>                 <td>                     <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"/>                 </td>             </tr>             <tr>                 <td>                     &nbsp;                 </td>                 <td><asp:contentplaceholder id="Contentplaceholder2" runat="server">This is a default content.                     </asp:contentplaceholder>                 </td>             </tr>         </table>     </form> </body> </html>