In visual studio 2008 when I drag and drop asp controlXXX on aspx page. Property page for this control, does not show event handlers button. It can reappear after switching to designer view but then disappears again. Screenshot attached.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that’s annoying, but it works probably only in designer.
But you can still add event handlers manually
in html add onclick property and write name of the method
and in code-behind add method with two parameters of types: (object, EventArgs) like this:
or you can also add event handler in Page_Init method
(this will also generate automatically the method, only after += press TAB twice)