i got an error in image button click

Posted by reddysankark-13471 under ASP.NET on 2/19/2012 | Points: 10 | Views : 2097 | Status : [Member] | Replies : 9
hi,

now only i will learn all the things in login .i will prepare sign up my own it thrown an error like this.Error 12 No overload for 'ImageButton1_Click' matches delegate 'System.Web.UI.ImageClickEventHandler' D:\ksr\login\signup.aspX.could please help me to solve this error.i will attach source file also

sankarreddy


Responses

Posted by: Gow.Net on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
hi i check your coding remove ImageButton1 and add new ImageButton1 and try

gowthaman8870226416

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/20/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi sankark,
Method you specified in your .cs page is method having signature ImageButton1_Click(string)
where as in reality ImageButton1_Click is an event having signature like ImageButton1_Click(object, ImageClickEventHandler)

so do one thing put new ImageButton, and double click on it. this will create an event for you.
then call your ImageButton1 method from that event.

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: reddysankark-13471 on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
hi ,
could please give me complete coding for me.

sankarreddy

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/20/2012 [Member] Bronze | Points: 25

Up
0
Down
Ok, download the code
 Download source file

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: reddysankark-13471 on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
hi
again i got same error i will send both database and coding. could you please recover me.
 Download source file

sankarreddy

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/20/2012 [Member] Bronze | Points: 25

Up
0
Down
Do one thing Change ImageButton1_Click(string dob) to ImageButtonClick(string dob)

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: reddysankark-13471 on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
its not clear.again same error

sankarreddy

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: reddysankark-13471 on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
any other method to signup with sql connection through programatically

sankarreddy

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishantcomp2512 on: 2/20/2012 [Member] Starter | Points: 25

Up
0
Down
just go to your aspx page and modify
onclick to OnClick='ImageButton1_Click' and check another property runat="server"

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response