Find Position of Controls asp.net

How do I find the position of controls in an asp.net subroutine using vb.net during runtime?

Using javascript...
   var ctrlBounds = Sys.UI.DomElement.getBounds(ctrl);
   
   var x = ctrlBounds.x
   var y = ctrlBounds.y
   var h = ctrlBounds.height
   var w = ctrlBounds.width
LVL 7
ast2550Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
surajgupthaConnect With a Mentor Commented:
yes thats right and there is also the screen resolution on every machine.....
Just curious... why would you need this value for?
0
 
surajgupthaCommented:
Isnt what you provided the answer to your question? If you are looking at passing this value back to the server. you might want to save it to hidden variables...
0
 
ast2550Author Commented:
But, isn't there a way using vb and not javascript?
0
 
surajgupthaCommented:
>> vb.net during runtime
You cannot use VB .net as a client side scripting lanuguage instead of javascript. Did u mean VB script?
0
 
ast2550Author Commented:
I guess I wasn't considering it client-side.  Is it because browsers will render it differently and therefore client-side is the only way?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.