HTML Server control rather than Web Server controls - ASP.NET Globalization and Localization

Q.  When should you use HTML Server control rather than Web Server controls?
- Published on 28 Jul 15

a. You are migrating existing, classic ASP pages over to ASP.NET pages.
b. The control needs to have custom client-side JavaScript attached to the control’s events.
c. The Web page has lots of client-side JavaScript that is referencing the control.
d. All of the above.

ANSWER: All of the above.
 

    Discussion

  • Raj   -Posted on 19 Oct 15
    The best use of HTML Server control rather than Web Server controls in following situation.
    • You are migrating existing, classic ASP pages over to ASP.NET pages.
    • The control needs to have custom client-side JavaScript attached to the control’s events.
    • The Web page has lots of client-side JavaScript that is referencing the control.
    HTML server controls are similar to HTML control. You can convert HTML control as a HTML server control by adding runat=”server ” attribute.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)