HOWTO: Do Web Control relative screen positioning during PostBack

Discussion in 'ASP .Net Web Controls' started by Dan Sikorsky, Nov 12, 2004.

  1. Dan Sikorsky

    Dan Sikorsky Guest

    How do you get the x,y pixel location of a textbox so that you can position
    the Web CalendarControl popup nearby the associated textbox that will
    contain
    the date selected? This needs to be done on the postback, so no javascript
    will do.

    --
    Thank you kindly,
    Dan Sikorsky BAB, BScE, MSC
     
    Dan Sikorsky, Nov 12, 2004
    #1
    1. Advertising

  2. You can't exactly do this from the server side since the browser makes final
    decisions about placement.

    What you could do is give the textbox a specific x,y location using
    GridLayout so then you'd know where it will be placed.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Dan Sikorsky" <> wrote in message
    news:Oi%...
    > How do you get the x,y pixel location of a textbox so that you can
    > position
    > the Web CalendarControl popup nearby the associated textbox that will
    > contain
    > the date selected? This needs to be done on the postback, so no javascript
    > will do.
    >
    > --
    > Thank you kindly,
    > Dan Sikorsky BAB, BScE, MSC
    >
    >
     
    Steve C. Orr [MVP, MCSD], Nov 12, 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. Guenther Liebowitz

    Preventing jump to top of screen during postback

    Guenther Liebowitz, Aug 14, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    554
    Stephen Walch
    Aug 14, 2003
  2. Dan Sikorsky

    HOWTO: Get Web Control Screen Coordinates

    Dan Sikorsky, Nov 12, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    5,797
    Dan Sikorsky
    Nov 12, 2004
  3. Rob R. Ainscough
    Replies:
    2
    Views:
    1,669
    Rob R. Ainscough
    Feb 7, 2006
  4. Fred Nelson
    Replies:
    1
    Views:
    2,469
    Christopher Reed
    Feb 21, 2006
  5. Rob Powell
    Replies:
    4
    Views:
    20,450
    dorayme
    Sep 17, 2006
Loading...

Share This Page