Ajax Update Panel

G

Guest

Hi,

I have a gridiew with a series of textboxes.

When my user tabs out of the textbox i do some calculations.

My gridview is on an ascx and my ascx is inside an UpdatePanel on my aspx.

After the calculations are complete the focus is lost from the last textbox
that the user was in. I want the cursor to stay on the control the user has
tabbed to.

How can I achieve this?
 
B

bruce barker

you can not output javascript in a update panel postback. you need to
register and end request handler (in javascript) when you make the panel
update. this handler can then set the focus.

-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top