<div style="height: 40px; background: Yellow;">
Header<br />
<div runat="server" id="hotProductsContentContainer">Hot Products</div>
<div>Menu</div>
</div>
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
<div style="height: 40px; background: blue;">
Footer</div>
</div>
public string HotProductsContent
{
get { return hotProductsContentContainer.InnerHtml; }
set { hotProductsContentContainer.InnerHtml = value; }
}
//In Content page
protected void Page_Load(object sender, EventArgs e)
{
Master.HotProductsContent = "New Hot Products for Furniture";
}
Source ASP.NET Videos
No comments:
Post a Comment