This has to be simple. Still, I've noticed VS2012 acting very erratic - sometimes it won't generate the designer file entries for example. Has anyone got any idea what might be going on here? I've tried adding the button both in code and by dragging it onto the design surface. I've re-created the form several times to no avail.
Here's my code:
ASPX:
<asp:Button ID="Button1" runat="server" CssClass="submitButton"
OnClick="Submit_Click" Text=" Submit " />
CODE-BEHIND:
protected void Submit_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
Response.Write("got to here...");
}
}
DESIGNER:
protected global::System.Web.UI.WebControls.Button Button1;