Determine PageLayout programatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Pacl

    #1

    Determine PageLayout programatically

    I am building a custom server control. I need to
    determine whether the page the custom control resides in
    is in flow layout or grid layout. Because I am doing this
    from the server control, I need to determine this
    programatically .

    Any help is appreciated.
  • Marina

    #2
    Re: Determine PageLayout programatically

    I dont' think this is possible. The layout mode of the page is really just
    for the designer. It determines whether the resulting html will have
    absolute positioning (i.e. specify the location of every element), or if it
    will just have the elements on the page, and they will be rendered as layed
    out.

    There is only a directive in the .aspx for design time support that let's
    VS.NET which mode you are in - it is irrelevant as far as the browser is
    concerned.

    "Tim Pacl" <timothy_pacl@d ell.com> wrote in message
    news:109301c345 71$ce08a580$a50 1280a@phx.gbl.. .[color=blue]
    > I am building a custom server control. I need to
    > determine whether the page the custom control resides in
    > is in flow layout or grid layout. Because I am doing this
    > from the server control, I need to determine this
    > programatically .
    >
    > Any help is appreciated.[/color]


    Comment

    Working...