Use of the enter button

  • Thread starter Thread starter Samuel
  • Start date Start date
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
 
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
 
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
 
Back
Top