set top and left on web control?

Discussion in 'ASP .Net Web Controls' started by ENathan, May 12, 2005.

  1. ENathan

    ENathan Guest

    We generate pages dynamically. Our pages are constructed with web controls
    in a "flow layout" manner facilitated by heavy use of the literal control.
    We would like to change that to a "grid layout" manner. Is this possible? We
    all know that web controls don't support the top and left properties, so are
    we going to have to wrap everything in it's own grid layout panel(HTML
    Control)?
     
    ENathan, May 12, 2005
    #1
    1. Advertisements

  2. ENathan

    Mythran Guest

    "ENathan" <> wrote in message
    news:%...
    > We generate pages dynamically. Our pages are constructed with web controls
    > in a "flow layout" manner facilitated by heavy use of the literal control.
    > We would like to change that to a "grid layout" manner. Is this possible?
    > We
    > all know that web controls don't support the top and left properties, so
    > are
    > we going to have to wrap everything in it's own grid layout panel(HTML
    > Control)?
    >
    >


    If I understand you correctly, you want to set a "Top" and "Left" position
    of a web control. To do this, in a real generic way, do something like the
    following:

    C#:

    string style = "position:absolute;top:100px;left:100px;";
    WebControl1.Attributes.Add("style", style);

    HTH,
    Mythran
     
    Mythran, May 13, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Reny J Joseph Thuthikattu
    Replies:
    1
    Views:
    835
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 30, 2004
  2. Shimon Sim

    Top left coner of html control

    Shimon Sim, Jun 7, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    518
    Steven Cheng[MSFT]
    Jun 9, 2005
  3. Varangian

    Get the LEFT and TOP position of Image

    Varangian, Mar 30, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    579
    Varangian
    Mar 30, 2006
  4. Goofy
    Replies:
    2
    Views:
    340
  5. Samuel Rhodes

    Getting Top Left Poition of the control????

    Samuel Rhodes, Apr 13, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    522
    Sepideh Ghanbari
    Dec 13, 2009
  6. Shawn B.

    Top and Left of "Control" Not "WebControl"

    Shawn B., Apr 29, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    212
    Shawn B.
    Apr 29, 2004
  7. Björn Marthen

    How to get the left and top coordinate of custrom control?

    Björn Marthen, Dec 8, 2003, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    267
    Björn Marthen
    Dec 9, 2003
  8. moha297
    Replies:
    31
    Views:
    583
    GTalbot
    Feb 9, 2010
Loading...