Professional Web Applications Themes

Get or Set the position of a control in a page - ASP.NET General

Hi all, how can I set the absolute position of a control on a webpage? The control would be a server control and I need to be able to do this using the code behind. Thanks in advance, Frank...

  1. #1

    Default Get or Set the position of a control in a page

    Hi all, how can I set the absolute position of a control on a webpage? The
    control would be a server control and I need to be able to do this using the
    code behind.

    Thanks in advance,

    Frank


    John Guest

  2. #2

    Default Re: Get or Set the position of a control in a page

    Thanks a lot. I used this, and worked for setting the values, even for
    controls a flow layout pages. What I haven't found yet is how to get these
    values out of a control in a flow layout page. Any suggestion?

    Thanks again,

    Frank

    "Tommy" <net> wrote in message
    news:google.com... 
    news:<#phx.gbl>... [/ref]
    The [/ref]
    the [/ref]


    John Guest

  3. #3

    Default Re: Get or Set the position of a control in a page

    John Francisco Williams wrote:
     

    Eventually, when the page reaches the browser, the values are
    implemented as CSS positioning. This is easy to do manually using divs,
    e.g. <div style=...> place control here </div>. If you type that in
    Visual Studio.NET html editor, the editor will even help you build the
    style.

    Better yet is to use an external stylesheet and ids, e.g. <div
    id="menu"> place control here </div>. Then in the style sheet:
    #menu
    {
    position: absolute;
    top: 0px;
    etc.
    }


    ~Steve

    Steven Guest

Similar Threads

  1. how can i get the cursor position in a textArea control
    By jinnaluo in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: July 11th, 04:40 PM
  2. Fix the position of a custom control with 2 textboxes and 1 button.
    By Fernando Lopes in forum ASP.NET Building Controls
    Replies: 0
    Last Post: March 9th, 05:28 PM
  3. Find Position of control
    By Sundance Kid in forum ASP.NET Building Controls
    Replies: 0
    Last Post: January 21st, 02:25 PM
  4. Replies: 3
    Last Post: September 9th, 04:46 PM
  5. Replies: 1
    Last Post: July 9th, 08:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139