Which of the following is the correct syntax for an event handler for a Button control in ASP.NET?

Question:Which of the following is the correct syntax for an event handler for a Button control in ASP.NET?

1.protected void MyButton_Click(object sender, EventArgs e){ }

2.protected void MyButton_Click(EventArgs e){ }

3.protected void MyButton_Click(object sender){ }

4. protected void MyButton_Click(){ }


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!