Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I design the master page but after attaching that master page the aspx page is block.Than how can i degisn that aspx page.
Posted
Comments
Santhosh Kumar Jayaraman 22-Aug-12 8:11am    
What you are getting/.?
Rahul Rajat Singh 22-Aug-12 8:16am    
not clear. please elaborate.
AshishChaudha 22-Aug-12 8:39am    
Thats great!! you have tried to designed..but what you have designed and why your aspx page is getting block, how should we know..what you have done..provide us proper requirement and what you have done so we can help you better..
Thanks

 
Share this answer
 
Comments
_Amy 22-Aug-12 8:46am    
My +5!
I think, I got you

The contentplaceholder defined in master page is missing in child page.

Master Page
<head runat="server">
    <title></title>
    <asp:contentplaceholder id="head" runat="server" xmlns:asp="#unknown">
    </asp:contentplaceholder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="width:100%;height:44px;background-color:Blue;">
            <!--put your menu,headline etc-->
        </div>
        <asp:contentplaceholder id="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
        </asp:contentplaceholder>
    </div>
    </form>
</body>


Child Page
<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server" xmlns:asp="#unknown">
    <h1>DOT.NET</h1><br />
    <h1>ASP.NET</h1><br />
    <h1>C#</h1><br />
    <h1>LINQ</h1><br />
</asp:content>


cheers
 
Share this answer
 
Hi friend,

1. design the layout in your master page.

2.Delete everything in your content page except the first line.

C#
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminMasterPage.aspx.cs" Inherits="Yeshasvini.AdminMasterPage" MasterPageFile= %>]]>

<asp:content id="content1" contentplaceholderid="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">

</asp:content>


3.In that masterpagefile add your master page.

4.and do the operation inside the contentplaceholder in your content page..

Reason:

The master page already contain body,form everything . So again if its in your page means it will show the error......
 
Share this answer
 
hi,

In child page, Design the layout inside
XML
<asp:content id="content1" contentplaceholderid="ContentPlaceHolder1" runat="server">
//ur design here
</asp:content>
 
Share this answer
 
SImple,

there are couple of ways as of now you do this .


create new solution, then add new -> select Master page,

then again add aspx page while adding a popup window wil come , in that you select mater page.


thats it
 
Share this answer
 

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