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.
RtYou 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/2...p200406so_f.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"R Tipton" <rrtipton12@.yahoo.com> wrote in message
news:EiA3g.31650$ZB1.4245@.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
>
Thank you. I will check them out. -Rt
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:OIhDjrNaGHA.608@.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/2...p200406so_f.asp
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "R Tipton" <rrtipton12@.yahoo.com> wrote in message
> news:EiA3g.31650$ZB1.4245@.tornado.texas.rr.com...
>
Tuesday, March 13, 2012
Textbox and Button Controls Question
Labels:
asp,
button,
controls,
cursorplaced,
downanother,
form,
further,
net,
textbox,
web
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment