Click here to Skip to main content
13,147,689 members (30,601 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how to create a master page for simple login application. can we maitain the master page for all the pages that application. please provide anu links.
Posted 14-Jan-13 18:35pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1[^]

ASP page
<%@ Page Language="C#" masterpagefile="master.master" title="Login" %>
<asp:Content id="Content4" runat="server" contentplaceholderid="head">
<asp:Content id="Content5" runat="server" contentplaceholderid="PageDesc">
<asp:Content id="Content6" runat="server" contentplaceholderid="sidebar">
    <h4>Contact Information</h4>
<asp:Content id="Content1" runat="server" contentplaceholderid="Body">
    <asp:Login runat="server" id="Login1">

web config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns="">
        <authentication mode="Forms" />
            <deny users="?" />
        <identity impersonate="False" />

master page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<%@ Master Language="C#" %>
<html dir="ltr" xmlns="">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<asp:ContentPlaceHolder id="head" runat="server">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="style.css" />
<body style="margin-top: 0; margin-bottom: 0">
<form id="form1" runat="server">
<div class="wrapper">
    <div style="text-align: center">
            <a href="">
            <img alt="Link to Home Page" src="images/123header.jpg" width="625" height="71" /></a></div>
    <table cellpadding="0" cellspacing="0" border="0">
            <td class="header" style="width: 750px; height: 219px">
            <!--#include file="includes/include_sitename.htm"-->
            <asp:ContentPlaceHolder id="PageDesc" runat="server">
            <td class="navigation">
            <!--#include file="includes/include_mainnavigation.htm"--></td>
            <table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
                    <td class="sidebar">
                    <asp:ContentPlaceHolder id="sidebar" runat="server">
                    <td class="maintext" valign="top">
                    <asp:ContentPlaceHolder runat="server" id="Body">
            <td class="footer">
            <!--#include file="includes/include_footer.htm"--></td>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100