ContentPlaceHolder - size on Master Page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred Nelson

    ContentPlaceHolder - size on Master Page

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

    On my master page I have a "contentplaceho lder" 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
  • Andrew Robinson

    #2
    Re: ContentPlaceHol der - size on Master Page

    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



    "Fred Nelson" <fred@smartybir d.com> wrote in message
    news:ewLlUVXNGH A.1760@TK2MSFTN GP10.phx.gbl...[color=blue]
    > I'm developing my first VS2005 C# web application.
    >
    > On my master page I have a "contentplaceho lder" 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[/color]


    Comment

    • Fred Nelson

      #3
      Re: ContentPlaceHol der - size on Master Page

      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:
      [color=blue]
      > 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.
      >
      >[/color]

      Comment

      • Andrew Robinson

        #4
        Re: ContentPlaceHol der - size on Master Page

        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



        "Fred Nelson" <fred@smartybir d.com> wrote in message
        news:uzW9F%23YN GHA.3728@tk2msf tngp13.phx.gbl. ..[color=blue]
        > 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:
        >[color=green]
        >> 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.
        >>
        >>[/color]
        >[/color]


        Comment

        Working...