How to set focus on a label after a button clicked (web applicatio

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all:

I have a label "ID=lblTotal" in my aspx page and also have a button
"ID=btnTotal"
I would like to click total button and show the result on the label and set
focus on the label. Now, when I click the button, the result shows on the
label, but the cusor will go to the top of the page, which I have drag the
page down to see the result.

How should I do it? I think javascript is needed here, but how? (I am using
vb.net for this web App.)
 
if you are not familar with javascript, why not use anchor to insteal of it

Tony
 
if I use anchor, I will lost all the info. the user just typed in, Can I use
anchor and also keep the info. that user just typed in? 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

Back
Top