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:

  1. 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:



  2. 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:



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




Rating:



Other articles

Click here to Article home

Microsoft Certification MCSE: MCSA , MCTS, MCDST, MCAD, MCDBA, MCSE Messaging, MCSE Security
JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.