Why would an event handler work one day, and then stop working the next day without any code changes?
I have run into the problem many times, but always have to play around and somehow the event handler magically works again. Below is an example where this happened to me again today. Do you know a quick way to fix this type of problem?
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">
Link
</asp:LinkButton>
I set a breakpoint on this method and it never gets hit.
protected void LinkButton1_Click(object sender, EventArgs e)
{
// snip
}
I have tried cleaning the solution, rebuilding all, etc. Any insight here?
Edit:
Yes, AutoEventWireup is set to true. No other system/development environment changes were made. I'm using .NET 3.5.