New to ASP.net.
Working in Microsoft Visual Web Developer 2010 Express.
Wrote a program with both HTML and Visual Basic.
Code:
<asp:Button ID="Button1" OnClick="Button1_Click" Text="Get Rise and Set Times" runat="server" />
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'code
End Sub
How do you write "OnClick="Button1_Click"" so that it will work?