Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 January 4th, 2008, 10:15 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default ContentPlaceHolder problem

I have created a master page with a header section, navigation section and a content section. I drop the ContentPlaceHolder into the table in the content section. The ContentPlaceHolder now occupies the full width of the table in the content section. So far good.

Now I add a WebForm and link it to the MasterPage. When I open the web form is design mode I see the ContentPlaceHoldenter only as a fraction of the width from what I see in the MasterPage. I enter data into the ContentPlaceHolder and correctly it expands as I enter data. When I debug my webform it displays the data I entered into the ContentPlaceHolder correctly but the width is a fraction of the size of the original definition of the ContenPlaceHolder. It does not use the full with of the table but folds the data vertically.

I am using relative positioning. Any ideas??? Thank you.


This is the content of the ContentPlaceHolder after I have entered data:


Code:
Since 1962 Bobby Soles Propeller Service, Inc. 
has been serving the boating industry under the same
dependable ownership and management with over 100 years 
of combined expertise and knowledge. With two locations,
This is how I see data in my web form:


Code:
Since 1962 Bobby 
Soles Propeller 
Service, Inc. has 
been serving the 
boating industry
under the same 
dependable 
ownership and 
management with 
over 100 years of 
combined
 
Old January 5th, 2008, 01:45 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you post some of the actual code you are using to display this? Let's see the HTML tags and maybe the styles that are effecting the layout.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix the contentPlaceHolder size SriRamaKrishna ASP.NET 2.0 Basics 4 March 25th, 2008 12:06 AM
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
FCKEditor not working in contentplaceholder msch-prv BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 December 4th, 2007 08:38 PM
ContentPlaceHolder problem nuth ASP.NET 2.0 Basics 1 November 22nd, 2007 01:09 AM
Alignment of ContentPlaceHolder garak0410 ASP.NET 2.0 Basics 2 June 7th, 2006 12:06 PM





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