IntelliSense not showing up event handler in visual studio 2013

Posted by Prinz2014 under ASP.NET on 9/30/2014 | Points: 10 | Views : 591 | Status : [Member] | Replies : 2
Hello everyone!

When I am trying to associate an event handler with the click event of a button control it doesnt show up/ generate event handler. Please check the screenshots. Instead of "new EventHandler(Button1_Click)" it shows "Button1_Click"

Thank you.




Responses

Posted by: A2H on: 10/5/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
new EventHandler(Button1_Click)
shows up when you attach a click event hanlder to your button dynamically.i.e through code at runtime.
Button1_Click
However the above code will show up when you double click on the button in the designer and visualstudio asp.net page designer.
Both will do the same job. Hope this clarifies your doubt.

Thanks,
A2H
My Blog

Prinz2014, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveenhcl on: 10/6/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

Sometimes due to some issues event is not fired, to overcome this issue better to remove the existing event from source code and double click on the button to generate new event and wrote code inside of that.

Hope you get my point...

Prinz2014, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response