I have markup so:
<asp:TextBox runat="server" ID="Accountname" />
<asp:CustomValidator runat="server" ControlToValidate="Accountname" OnServerValidate="Accountname_CheckUnique" meta:resourcekey="ACCOUNTNAME_UNAVAILABLE" />
Codebehind so:
protected void Accountname_CheckUnique(object source, ServerValidateEventArgs arguments)
{
arguments.IsValid = Foo();
}
Which was working just fine, and then without changing anything on the page ASP now insists:
No overload for 'Accountname_CheckUnique' matches delegate 'System.EventHandler'
Well no, and nor should it according to MSDN. It's late and I'm tired, anybody know how to fix this or point out the glaring flaw in my comprehension?
Edit:
I've also tried += binding as an eventhandler in the codebehind and it still requires the EventArgs signature. Makes. No. Sense.
Edit 2:
Deleted and recreated the page entirely (copy paste) and problem went away. Assume some niche thing created a very localised problem.
@MODS: Please close.