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. Advertising

  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. Advertising

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. Shimon Sim

    Top left coner of html control

    Shimon Sim, Jun 7, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    408
    Steven Cheng[MSFT]
    Jun 9, 2005
  2. Goofy
    Replies:
    2
    Views:
    272
  3. Samuel Rhodes

    Getting Top Left Poition of the control????

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

    Top and Left of "Control" Not "WebControl"

    Shawn B., Apr 29, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    129
    Shawn B.
    Apr 29, 2004
  5. 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:
    154
    Björn Marthen
    Dec 9, 2003
Loading...

Share This Page