protected void ButtonSheel_Click(object sender, EventArgs e)
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.
The mark up is used (at runtime) to define a class which inherits from the class defined in your code behind (you can see this in the
@Pagedeclaration where we define what class the page inherits from)This class needs access to the methods that you define to be the event handlers for your controls (button clicks etc…), and so these methods they need to be marked as at least protected (rather than private) to allow the inheriting markup class access.