WebForm Command Buttons

  • Thread starter Thread starter WhoopDing
  • Start date Start date
W

WhoopDing

How do I handle all click events for all controls in Panel.Controls with one
event procedure?
 
There is some special crap you need to do to create a control array in .net

So if your not using a control array the only way i know how to handle mult
events. (Important::: events must have same signature)

public sub EventHandler(byval sender, byval e) handles
control1.click,control2.click,control3.click,control4.click

end sub
 
That was me!

Went off at a tangent for a while. Sorted it now.

What would be nice though, would be to add a handler for
Panel.Controls().Command that covers all elements.
 
WhoopDing,

What you ask is in the sample I show, so I don't see the problem

Cor
 

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

Back
Top