470,624 Members | 2,472 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

Textbox and Button Controls Question

I have a simple web form with a textbox and a button and further down
another textbox and button. My problem is even though I have my cursor
placed in the second textbox, the first button is active. No matter what
textbox I place the cursor in the first button on the page is active.

Is there a function that I should be using to prevent this from happening?
Any help is appreciated. I am in the process of learning ASP.NET.

Rt
Apr 26 '06 #1
2 1251
You could use this free control to solve the problem.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here are a couple good articles on the subject:
http://www.allasp.net/enterkey.aspx
http://www.aspnetpro.com/features/20...200406so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"R Tipton" <rr********@yahoo.com> wrote in message
news:Ei******************@tornado.texas.rr.com...
I have a simple web form with a textbox and a button and further down
another textbox and button. My problem is even though I have my cursor
placed in the second textbox, the first button is active. No matter what
textbox I place the cursor in the first button on the page is active.

Is there a function that I should be using to prevent this from happening?
Any help is appreciated. I am in the process of learning ASP.NET.

Rt

Apr 26 '06 #2
Thank you. I will check them out. -Rt
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:OI*************@TK2MSFTNGP02.phx.gbl...
You could use this free control to solve the problem.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here are a couple good articles on the subject:
http://www.allasp.net/enterkey.aspx
http://www.aspnetpro.com/features/20...200406so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"R Tipton" <rr********@yahoo.com> wrote in message
news:Ei******************@tornado.texas.rr.com...
I have a simple web form with a textbox and a button and further down
another textbox and button. My problem is even though I have my cursor
placed in the second textbox, the first button is active. No matter what
textbox I place the cursor in the first button on the page is active.

Is there a function that I should be using to prevent this from
happening? Any help is appreciated. I am in the process of learning
ASP.NET.

Rt


Apr 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Pham Nguyen | last post: by
reply views Thread by Dot net work | last post: by
12 posts views Thread by Peter | last post: by
9 posts views Thread by D. Shane Fowlkes | last post: by
1 post views Thread by rn5a | last post: by
12 posts views Thread by Henry Jones | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.