| Author: vipul 24 Nov 2008 | Member Level: Diamond | Rating: Points: 1 |
Hi, first add one master page and one sample page. for adding sample page you select master page then see what are changes you want to do in the other page and do this way . i think this help you.
vipul,
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: Syed Shakeer Hussain 24 Nov 2008 | Member Level: Diamond | Rating:  Points: 6 |
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.
<% @ Master Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html > <head runat="server" > <title>Master page title</title> </head> <body> <form id="form1" runat="server"> <table> <tr> <td><asp:contentplaceholder id="Main" runat="server" /></td> <td><asp:contentplaceholder id="Footer" runat="server" /></td> </tr> </table> </form> </body> </html>
<% @ Page Language="VB" MasterPageFile="~/Master.master" Title="Content Page 1" %> <asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server"> Main content. </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Footer" Runat="Server" > Footer content. </asp:content>
Author: Athira Appukuttan 24 Nov 2008 Member Level: Diamond Rating: Points: 5 Hi..
<%@ Page Language="C#" MasterPageFile="~/MasterPages/Vetcare.Master" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="VetCareWeb.Default" Title="Dashboard page" StylesheetTheme="Themes" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
Thanks & Regards! Syed Shakeer Hussain
|