buttons

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
 
E

Eliyahu Goldin

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
 

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
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top