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 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.
 
Back
Top