Pb with the method Focus

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
 
B

bruce barker

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)
 
O

Oriane

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top