Use of the enter button

S

Samuel

Hi

I want that when users type in textboxA enter it will automatically clicks
on buttonA and when they click on enter in TextBoxB then it click on ButtonB

How can that be done?

Thank you,
Samuel
 
C

coolCoder

Hi

I want that when users type in textboxA enter it will automatically clicks
on buttonA and when they click on enter in TextBoxB then it click on ButtonB

How can that be done?

Thank you,
Samuel

Hi Samuel,

Hope that you are using .Net 2.0. If so, place your
textboxA and buttonA in 1 panel control. Do the same with other text
box and button so that you have 2 panels containing you existing
controls separately.
Now in the page load event, just set the default
button property of the panels. This will do.
Reply in case of any problems.

Thanks,
coolCoder
 
S

Samuel

Cool..

Thank you,
Samuel


coolCoder said:
Hi Samuel,

Hope that you are using .Net 2.0. If so, place your
textboxA and buttonA in 1 panel control. Do the same with other text
box and button so that you have 2 panels containing you existing
controls separately.
Now in the page load event, just set the default
button property of the panels. This will do.
Reply in case of any problems.

Thanks,
coolCoder
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top