Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
error thrown:
NO overload for registration matches delegate 'System.EventHandler'

here registration is a method.

<asp:Button ID="Register" runat="server" Text="Register" Onclick="Registration" />
Posted
Updated 28-Feb-13 21:41pm
v6
Comments
OriginalGriff 1-Mar-13 3:12am    
Where?
Are we supposed to guess?
Orcun Iyigun 1-Mar-13 3:19am    
He thinks we are psychics. You should know where it is LOL.
vidya.s.no1 1-Mar-13 3:22am    
sir, where have i went wrong ve u fixed it?
willington.d 1-Mar-13 3:31am    
Hi Vidya

Please run your program with breakpoint, tell us, in which line you are getting error.

Regards
Willington
vidya.s.no1 1-Mar-13 3:39am    
its showing error in:
<asp:Button ID="Register" runat="server" Text="Register" Onclick="Registration" />

Becasue you are using the Registration method as a click target in your HTML, you have to declare it as a event handler delegate target in your C#:

C#
protected void Registration(object sender, EventArgs e)
 
Share this answer
 
Comments
fjdiewornncalwe 1-Mar-13 17:40pm    
+5.
The tags will be like below

ASP.NET
<asp:button id="Register" runat="server" text="Register" onclick="Registration_Click" xmlns:asp="#unknown" />


not like

ASP.NET
<asp:button id="Register" runat="server" text="Register" onclick="Registration" xmlns:asp="#unknown" />


Change in code behind accordingly
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900