To get the position of the control, you have to use client-side script. The server-side code has not idea of the position. If you have set the position of the control with the Style attribute (Controls that inherits the WebControl class has the Style property), you can get the properties of the Style attribute from the Style property.
The MessageBox will oinly wotk for Win Forms and not for WebForms. If you want to use a MessageBox, you have to use client-side script.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT
CornerstoneMy Blog, ASP.Net 2.0 etc