I've created an ASP.NET button like so:
<asp:Button ID="btnSaveCoords" runat="server" OnClick="btnSaveCoords_Click" Text="Save Changes" CssClass="btn btn-warning" />
and the event in the OnClick is defined as follows:
protected void btnSaveCoords_Click(object sender, EventArgs
{
System.Diagnostics.Debug.WriteLine("Saving Coordinates...");
}
When I click the button, btnSaveCoords_Click isn't fired. What am I doing wrong?