Events

There are 1 entries for the tag Events

Raising Events from a web user control (Level 100)

[NOTE: This was originally posted at DevAuthority.com on 7/15/2005.]I just recently had a relatively new developer ask me how to raise events from a web user control to be handled in it’s parent form, so I thought it was worth posting here.  If you wish to be able to handle events in your code from user controls, it’s very simple:Step 1  Declare the event in your user control:            Public Event MyEventName()Step 2  Raise the event in your user control when you wish to have if fire:            RaiseEvent MyEventName()Step 3  When declaring your user control in...