Q:

asp.net OnClick events for controls

I'm converting a VB project to C#, and I notice that in vb it will call a function like:
 Protected Sub WZTestResult_NextButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles WZTestResult.NextButtonClick 

which handles the next button click event for a wizard.  
In c# I have to add the line:
 OnNextButtonClick="WZTestResult_NextButtonClick" 

on the asp.net source page or it will never hit the function.  Is this a necessity in c#, or is there something that I'm overlooking or missing?  Basically, is there a way in c# for it to hit that function like in VB without adding the line above in the source page?

A:

There is no equivalent for VB's Handles keyword.
You can do it in code behind if you want, when the page is initialized
public Default() {

    this.Init += (_o, _e) => {
         this.Wizard.NextButtonClick += WZTestResult_NextButtonClick;
    }
}

Default is the page constructor.

