Click here to Skip to main content
15,918,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how are to add multiple contentplaceholder in masterpage with in child page ,
how to add download masterpage with mywebproject
what is coding
Posted

The question you should ask is what are the basics of programming in asp.net with master pages.
1) If you want multiple content placeholders, then just open the master page designer in Visual Studio and copy/paste an existing content placeholder definition where you want the new placeholder to be. You just have to give it a new id.
2) In your child pages that inherit from the master page, you simple have to place content into the placeholder of choice.
3) If you use Visual Studio, use the deployment tool built into the IDE to deploy the files to wherever they need to go.
If you need some more specific answers, please ask more specific questions.
 
Share this answer
 
XML
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1"  runat="server">

        </asp:ContentPlaceHolder>
    </div>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
    </asp:ContentPlaceHolder>
    </form>
</body>
</html>
 
Share this answer
 
v2
Comments
mamta.tasu 20-Apr-13 3:52am    
how to reflect this second content place holder if it is added after creation of child page

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900