Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 November 25th, 2006, 05:54 AM
Authorized User
 
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to fix the contentPlaceHolder size

Hi all ,I use master pages .I dont want contentplaceholder to resize automatically.That is ,i want the size to be fixed.Let Me know the procedure to do it

 
Old November 25th, 2006, 07:29 AM
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,

The ContentPlaceHolder will always "resize" to accommodate for other elements around and within it. That's because the ContentPlaceHolder is not a visual control; that is, it doesn't produce any markup in the final HTML. It's just a marker region to add other content to.

If you want to build things at a fixed size, give (CSS) dimensions to the elements around and within the placeholder.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old November 25th, 2006, 01:25 PM
Authorized User
 
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Thanks IMAR,
 After i fixed the size of table cell in which the contentPlaceHolder, Its working now as 1 want.

 
Old November 26th, 2006, 05:44 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old March 25th, 2008, 12:06 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi....
how did you fix the problem? please give the details. I'm also facing same problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ContentPlaceHolder problem snufse ASP.NET 2.0 Basics 1 January 5th, 2008 01:45 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
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.