By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,473 Members | 3,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,473 IT Pros & Developers. It's quick & easy.

ContentPlaceHolder - size on Master Page

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.