How to add an event handler method for a server control to a C# Web page?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How to add an event handler method for a server control to a C# Web page?
Rating:
Take the following steps to add an event handler method for a server control to a C# Web page:
- Open the design view of the existed Web Forms page named MyWebForm1.aspx.cs. Drag the Button control from the Toolbox tool. Select the Button control, as shown below:

- In the Properties window of the Button control, click the Events icon
. By clicking the icon, the Properties window changes to the events view. In the events view, locate the Init event and double-click anywhere on the line. An illustrative image is shown below:

- The code behind page opens and the Button1_Init event handler method displays, as shown below:

Rating:
Was this information helpful?
Other articles
- What is a FTP-based Web site?
- What are the steps to configure ASP.NET Web application to receive requests for images?
- What is a data-bound control?
- Skills required for Microsoft test 70-528
- MCTS 70-528-CSHARP Short Notes: Exam Passing Tips