When to use HTML or ASP.Net Control ?
-
Both have their own signicficance if you want to do Client side coding then its better to use html controls else at the server side you should have control which could render at server side so use asp control or html control with run at server
-
-
ASP.NET controls - classes from
System.Web.UI.WebControls
namespace - are meant as abstraction for controls that goes beyond simple HTML. Web controls are typically compound of lot of javascript, HTML and server-side logic. You use HTML controls - from namespaceSystem.Web.UI.HtmlControls
when you don't need that abstraction, when you just need to control HTML elements from server-side.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus