Skip to content

Visual 2010 - Don't get contents of master page in all pages

Mags

Asked Apr 5, 2012, 11:30 AM EDT1 answer
Share
LinkedInX
I am new in ASP.Net 4.0 and i am trying to do web form using master page (this is option selected)  in c# 2010, i select master site for all content pages but when i m looking into design page of all content pages there is blank only not showing master page design. can anybody tell me the solution.

Thanks.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Senthilkumar
    0
    Hi,

    When you create the master page it will have the two sections called contentplaceholders.

    1) Content place holder for header
    2) Content placee holder for child pages

       

    You can design the common functionality required for you web page in id called head.

    The another place holder called contentplaceholder1 is editable area to child pages.

           
           

    If you create the web page which inherits the master page will show some thing like

    <%@ Page Language="C#" MasterPageFile="~/General/MasterPage.master" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="General_Default3" Title="Untitled Page" %>


    The id which has head is non editable area to the child pages. If you do not have any content then it will be empty. If you have header or navigation menu then it will show at run time in the child pages.

    You can have your required page design in the following content place holder.


    Hope this will help you to understand.
    0