How to add code behind manually on asp.net
<p>I have a website on the IIS but it has only the aspx file. Now I need to add the code behind for some pages. How do I go about this?</p>

<p>I've been trying to add the attribute "codebehind" and "autoeventwireup" on the top of the aspx file but no luck (the page_load event is not being called). Also, if I double click on the button from the design view in Visual Studio, it creates the javascript handle (not the server code).</p>
