Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > ASP.NET 4.5 General Discussion
|
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2014, 05:12 AM
Registered User
 
Join Date: Oct 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resize ContentPlaceHolder at NestedMaster Page..

HI,

In my project i have a master page where i have one content placeholder named as maincontent and i have used this in my nested master page , the main content placeholder is out of my nestedmasterpage size at the left and right side.how i do resize the maincontent place holder in nestedmaterpage as same with size with nestedmasterpage

Code:
%@ Master Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="AboutSubMaster.Master.cs" Inherits="YtleSolution.AboutSubMaster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

i have tried to use div which gives error[validatation xhtml5 control is not supported outside script or asp:content region]

how to i do resize content-placeholder in nested masted page?

Looking for your valuable reply..


Regards,
 
Old November 3rd, 2014, 03:32 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

In your master page, try wrapping the ContentPlaceholder controls inside a <div> that you can give a specific size.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Referencing a control within a different ContentPlaceHolder on same page julianfraser ASP.NET 3.5 Basics 11 January 22nd, 2009 01:27 PM
Move or resize the ContentPlaceHolder nuth BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 January 1st, 2008 11:11 AM
Resize web page with webcontroll YoungLuke C# 0 March 15th, 2007 07:12 PM
resizing the contentplaceholder in the master page ersdhivya ASP.NET 2.0 Basics 1 October 31st, 2006 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.