Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
in my master page their is two div one small div second large div i need defalt page in ladge div thanks


What I have tried:

in masterpage aspx
    <div style="display:table">    
    <div style="display:table-cell"></div>
    <div style="display:table-cell">DefaultPage.aspx</div>
    </div>
Posted
Updated 26-Sep-17 1:46am
Comments
F-ES Sitecore 14-Jun-17 4:34am    
Just put the ContentPlaceHolder inside that div. What's your specific problem?
Simon Ferry 26-Sep-17 8:55am    
Thanks for the answer

It seems that you missed the way ASP.NET uses/handles master pages and content pages...
You have to start over, by reading the documentation...
ASP.NET Master Pages[^]
How to: Create Content Pages for an ASP.NET Master Page[^]
Walkthrough: Creating and Using ASP.NET Master Pages in Visual Web Developer[^]
 
Share this answer
 
Try this..


<form id="form1" runat="server">
        <div style="display: table">
            <div style="display: table-cell"></div>
            <div style="display: table-cell">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                
            </div>
        </div>
        <div>
        </div>
    </form>
 
Share this answer
 
v2

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