471,348 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

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

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.)
Jul 21 '05 #1
2 6754
if you are not familar with javascript, why not use anchor to insteal of it

Tony
"Symphony" <Sy******@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
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.)

Jul 21 '05 #2
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.

"Tony" wrote:
if you are not familar with javascript, why not use anchor to insteal of it

Tony
"Symphony" <Sy******@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
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.)


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Chris | last post: by
reply views Thread by Symphony | last post: by
8 posts views Thread by Yeah | last post: by
16 posts views Thread by Stuart | last post: by
11 posts views Thread by Alex.Svetos | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.