title: Converting VB.NET Web Form to C# and wiring up events
body: <p>In My VB.NET web page, I have this standard event. Note the "Handles" clause on teh event declaration.</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  End Sub
  </code></pre>
  
  <p>In my C# web app, I have this:</p>
  
  <pre><code>protected void Page_Load(object sender, System.EventArgs e)
  {
  </code></pre>
  
  <p>Since C# doesn't have a "Handles" equivalent and from what I've seen, event handlers are wired up using delegate += syntax, I was looking for this, but I could not foind it in the aspx page, aspx.cs file or the aspx.designer.cs file.</p>
  
  <p>In VB, I would have two drop down lists at the top of  the Code Editor window and I could select any object on the web form or the web form itself and see the possible events for the object. Selecting the event would either take me to the event handler or if it didn't exists, it would create the stub for me.</p>
  
  <p>I know that the Properties window in C# (and I think in VB, too) has an Event tab that shows the list of events for the selected object GUI object, but "Page" doesn't appear as an object that can be selected.</p>
  
  <ol>
  <li><p>Where does C# define the hooking up of the event to the handler? </p></li>
  <li><p>How do I generate a stub for the Page event handler routine? I know that the handle appears by default, but what if it is deleted or I want to add a Page_initialize code? Is there an easy way to get the stub or do I need to go to the Object Browser for the syntax?</p></li>
  </ol>