positioning user controls on pages

Discussion in 'ASP .Net' started by Craig G, Dec 2, 2004.

  1. Craig G

    Craig G Guest

    is there a correct way to do it?

    at the mo, i just putting the usercontrol within a <div> tag, then setting
    its absolute position there. which works for me as the control isnt used on
    any other pages. but what would happen if i wanted the same control on a
    different page and in a different position?

    how would i go about this?

    im using Grid Layout on my pages.

    Cheers,
    Craig
     
    Craig G, Dec 2, 2004
    #1
    1. Advertising

  2. Hi Craig,

    I think the way you're doing it is fine, with one suggestion. Use an
    external style sheet for your positioning, and assign a CSS class name to
    the div. That way you can use the same div in another page with a different
    style sheet to position it differently.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Neither a follower
    nor a lender be.

    "Craig G" <> wrote in message
    news:eJW#...
    >
    > is there a correct way to do it?
    >
    > at the mo, i just putting the usercontrol within a <div> tag, then setting
    > its absolute position there. which works for me as the control isnt used

    on
    > any other pages. but what would happen if i wanted the same control on a
    > different page and in a different position?
    >
    > how would i go about this?
    >
    > im using Grid Layout on my pages.
    >
    > Cheers,
    > Craig
    >
    >
     
    Kevin Spencer, Dec 2, 2004
    #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. John
    Replies:
    0
    Views:
    344
  2. Alessandro Zifiglio
    Replies:
    0
    Views:
    418
    Alessandro Zifiglio
    Feb 10, 2004
  3. Nathan Sokalski
    Replies:
    5
    Views:
    1,020
    Gaurav Vaish \(www.Edujini-Labs.com\)
    Jan 10, 2007
  4. Nathan Sokalski
    Replies:
    4
    Views:
    296
    Nathan Sokalski
    Dec 21, 2006
  5. Nathan Sokalski
    Replies:
    4
    Views:
    334
    Nathan Sokalski
    Dec 21, 2006
Loading...

Share This Page