buttons

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i have a web form with just
3 buttons and
3 textboxes

the layout is like follows:
button1 - texbox1
button2 - textbox2
button3 - textbox3

it there a way to just have one procedure handle all three button clicks?

For example,
if you press button1 then populate textbox1 with values
if you press button2 then populate textbox2 with values,
etc.

thanks,
rodchar
 
Sure,

Just point the buttons onclick event to the same procedure. First parameter
it gets is a pointer to the event sender. It will point to one of your three
buttons.

Eliyahu
 
Back
Top