Return to Snippet

Revision: 43719
at March 29, 2011 23:15 by dactivo

Initial Code
En la página:

this.AddProductRate.SubmitClicked += new SiteControls_AddRate.SubmitClickedHandler(

En addproductrate:

    public delegate void SubmitClickedHandler();

    public event SubmitClickedHandler SubmitClicked;
    protected virtual void OnSubmitClicked()
        // If an event has no subscribers registerd, it will
        // evaluate to null. The test checks that the value is not
        // null, ensuring that there are subsribers before
        // calling the event itself.
        if (SubmitClicked != null)
            SubmitClicked();  // Notify Subscribers

Initial URL

Initial Description

Initial Title
Event handler in usercontrol

Initial Tags

Initial Language