Basic Dot Net Question:

When we go for html server controls and when we go for web server controls?

Tweet Share WhatsApp

Answer:

Server controls are a part of ASP.net. When a server control is used there will be an extra overhead on the server to create the control at run time and accordingly set the values. HTML controls are static controls and are easy to use. They are supported is ASP.net.
As a rule, if there is a corresponding HTML control available instead of the server control, you should always go for the HTML control as it enhances the server performance and ensures faster response. Server controls should be used when it is found that the available HTML controls are not sufficient to achieve the task.

Download Dot Net PDF Read All 116 Dot Net Questions
Previous QuestionNext Question
what is the difference between user control an custom control? advantages/disadvantages?Why The JavaScript Validation Not Run on the Asp.Net Button But Run Successfully On The HTML Button?