Tuesday, August 17, 2010

Master page in asp.net

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="JIUM.Authenticated.Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
This is the head content
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
This is the Body Content
</asp:Content>

nothing should be there out side of content tag

.http://www.w3schools.com/aspnet/aspnet_masterpages.asp

http://www.aspdotnetcodes.com/Asp.Net_Page_Directives.aspx

0 comments: