Just start entering code to create your component.
For example, this is the code to add a button to your .aspx file:
<asp:Button ID="ButtonAction" class="btn panel-black" runat="server" Text="" OnClick="Function_Name_Here" />
When you get the function name input for the OnClick method ...
for example, this piece of code:
OnClick="Function_Name_Here"
... Visual Studio will display a small popup with the option " <create new event> ".
Select this option and a codebehind event handler will be created for you.
source share