C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Master Page Creation


Posted Date: 24 Nov 2008      Posted By: vinothkumar      Member Level: Silver     Points: 1   Responses: 4



Hi
Everybody I have already developed 1 project .For that Menu am using 1 User Control .Now i plan to Add Master Page and Display all pages in to Content Template .But how to Add old pages in To Master Page (How to Inherit Old Pages To Master Page ) Is any body having Sample source share with me


Thanks&Regards
Mark





Responses

Author: vipul    24 Nov 2008Member Level: DiamondRating: 1 out of 5     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 2008Member Level: DiamondRating: 2 out of 52 out of 5     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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : formula fiels in reports
Previous : pie chart
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use