B
Biff
Hello,
I am bringing up an iFrame with a calendar control in it in
coordination with a text box that holds a date field. In my code
behind class I add a method call to the text box's OnFocus event that
calls the javascript method that shows and positions the iFrame
(arguments are the text control, and the desired x and y coordinates of
the iFrame). Right now I use hardcoded fixed values for the calendar
location - it was expedient and it worked - but I would prefer to
dynamically locate the iFrame based on the location of the text box
that holds the date.
I could do this in my current scenario if I could obtain the x and y
coordinate of the text box within the code behind class (the page is
Flow Layout, not Grid Layout). I have not been able to figure out how
to obtain these coordinates.
Does anyone know a way of obtaining the x and y coordinates of a
ASP.NET text box from the code behind class?
Thanks,
Biff Gaut
Gaithersburg, MD
I am bringing up an iFrame with a calendar control in it in
coordination with a text box that holds a date field. In my code
behind class I add a method call to the text box's OnFocus event that
calls the javascript method that shows and positions the iFrame
(arguments are the text control, and the desired x and y coordinates of
the iFrame). Right now I use hardcoded fixed values for the calendar
location - it was expedient and it worked - but I would prefer to
dynamically locate the iFrame based on the location of the text box
that holds the date.
I could do this in my current scenario if I could obtain the x and y
coordinate of the text box within the code behind class (the page is
Flow Layout, not Grid Layout). I have not been able to figure out how
to obtain these coordinates.
Does anyone know a way of obtaining the x and y coordinates of a
ASP.NET text box from the code behind class?
Thanks,
Biff Gaut
Gaithersburg, MD