473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ContentPlaceHolder - size on Master Page

I'm developing my first VS2005 C# web application.

On my master page I have a "contentplaceholder" and it covers a small
portion of the screen. I can place controls anywhere on the pages that
use it however this "break" is annoying.

Does anyone know how to resize the content place holder - I've tried
everything (tables, drag&drop, etc.)

Thanks very much!

Fred
Feb 19 '06 #1
3 9369
The content place holder assumes the size of its contents. It has no size of
its own. If you want to size the contents, try wrapping your inner content
with a table of a particular size.

--
Andrew Robinson
http://blog.binaryocean.com
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
I'm developing my first VS2005 C# web application.

On my master page I have a "contentplaceholder" and it covers a small
portion of the screen. I can place controls anywhere on the pages that
use it however this "break" is annoying.

Does anyone know how to resize the content place holder - I've tried
everything (tables, drag&drop, etc.)

Thanks very much!

Fred

Feb 19 '06 #2
Andrew:

Thanks for your reply! I'm still having problems with the content place
holder.

If I place the content place holder within a table in the master page
then I am unable to use it on pages that reference it.

If I use controls that are "absoutely" placed then they can easily
extend beyond the content place holder and overwrite any text below them
- for example binding a datagrid.

So:

Do you know of a way to make the content area respond correctly
(increase vertical size) to forms that contain absoutely placed
controls?

I can't find any way - and I want to use the absoutely placed controls
since it's much faster to develop.

Thanks again - I appreciate your help!

Fred

Andrew Robinson wrote:
The content place holder assumes the size of its contents. It has no size of
its own. If you want to size the contents, try wrapping your inner content
with a table of a particular size.


Feb 19 '06 #3
Not sure about the issue that you are having where you are unable to
reference the content place holder. To size the content, you should be
placing your content within a table and then that table within your content
place holder.

Putting a table around the content place holder within the master page, will
not maintain the size of the contained content place holder.

Can't comment on any of the absolute positioned controls. I never use those
properties and in general I think most sites avoid them.

--
Andrew Robinson
http://blog.binaryocean.com
"Fred Nelson" <fr**@smartybird.com> wrote in message
news:uz****************@tk2msftngp13.phx.gbl...
Andrew:

Thanks for your reply! I'm still having problems with the content place
holder.

If I place the content place holder within a table in the master page
then I am unable to use it on pages that reference it.

If I use controls that are "absoutely" placed then they can easily
extend beyond the content place holder and overwrite any text below them
- for example binding a datagrid.

So:

Do you know of a way to make the content area respond correctly
(increase vertical size) to forms that contain absoutely placed
controls?

I can't find any way - and I want to use the absoutely placed controls
since it's much faster to develop.

Thanks again - I appreciate your help!

Fred

Andrew Robinson wrote:
The content place holder assumes the size of its contents. It has no size
of
its own. If you want to size the contents, try wrapping your inner
content
with a table of a particular size.

Feb 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Billy Cormic | last post by:
Hello, I am using Visual Studio 2005 Beta for the first time and am having trouble using contentplaceholders. Actually, I am having trouble declaring them. Here is a snap shot of my master page:...
2
by: Urs Eichmann | last post by:
Hello, I want to define a MasterPage which already has some asp:Textbox and other controls defined inside a ContentPlaceHolder. The idea is that the user of the master page just changes two or...
4
by: Greg | last post by:
How do I programmatically load an .aspx page into the contentplaceholder? Similar to what would happen in the "navigateURL" property when clicking on a hyperlink on the master page. . . ASP .NET...
0
by: nickster | last post by:
For some reason when I use asp controls for the default content of a ContentPlaceHolder, they do not get rendered. Static content is rendered just fine however! Specifically I'm using multiple...
2
by: news.sbcglobal.net | last post by:
Back in the good old days (or bad old days depending on your point of view) when I used frames to develop some of my web sites, I was able to designate which frame I wanted a page to open in. Now...
2
by: premchandrasingh | last post by:
Hi I am using a master page in which I have only one contentplaceholder and inside this contentplaceholder I added a label. The problem is when I tried to assign some value to this label from...
3
by: jobs | last post by:
Hello. I have a master page with ContentPlaceHolder under a html Div tag. That DIV tag has CSS that positions it. While in Visual Studio design view, that div tag and contentplace holder does...
1
by: mil111 | last post by:
Hi, Can anybody help me? I created master page (in table) with header, footer, left column and in the right column is contentPlaceHolder. Content on contentPlaceHolder is longer than the left...
0
by: Andy B | last post by:
I have a div on the master page that is 600px high. It has a left pannel, main content (contentPlaceHolder) inside another div and a footer. What I am looking for is a few things: 1. How do you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.