How to differentiate between an HTML server control and a Web server control?

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 differentiate between an HTML server control and a Web server control?

Rating:

The following are the differences between an HTML server control and a Web server control:

  1. Open the existing Web page named MyWebForm1.aspx in Visual Studio 2005. For a Web server control, click the Design tab on the bottom of MyWebForm1.aspx, as shown below:



  2. Click the Standard tab in the Toolbox tool, as shown below:



  3. Drag and drop a Web server control on the Web page. For example, drag the Button control to the design view and place it anywhere on the Web page. A symbol appears on the upper-left corner of the Button control, as shown below:



  4. Click on the Source tab of the Web page. The following is the syntax of the Button Web server control in the source view:

    <asp:Button ID="Button1" runat="server" Text="Button1" />

    An illustrative image is shown below:



  5. Similarly, for an HTML server control, click the HTML tab in the Toolbox tool, as shown below:



  6. Drag and drop the Input (button) control to the design view and place it anywhere on the Web page. Right-click the Button control and check the Run As Server Control drop-down menu option. A symbol appears on the upper-left corner of the Button control. This indicates that it is an HTML server control. An illustrative image is shown below:



  7. Click on the Source tab of the Web page. The following is the syntax of the Button HTML server control in the source view:

    <input id="Button1" runat="server" type="button" />

    An illustrative image is shown below:


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us
MCSE: MCSA, MCTS, MCITP    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.