Pb with the method Focus

  • Thread starter Thread starter Oriane
  • Start date Start date
O

Oriane

Hi there,

What could explain that although I set the focus on a TextBox with the Focus
() method in my site, this textbox has the focus only the first time the
page is constructed ? The page is refresh periodically with an Ajx Timer in
a UpdatePanel, and the TextBox is inside this UpdatePanel. The Timer calls
explicitely the Focus method, however the focus is on a button in the same
UpdatePanel.

Thanks
 
updatepanels probably does not support the focus command. you will need
to do it in javascript using the endRequest event of the PageRequestManager.

-- bruce (sqlwork.com)
 
Hi Bruce,
bruce barker said:
updatepanels probably does not support the focus command. you will need to
do it in javascript using the endRequest event of the PageRequestManager.
Yes you should be right.

Many thanks
 
Back
Top