Interview Questions

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

.NET Interview Questions and Answers


(Continued from previous question...)

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

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 runtime 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 correspoding 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.

(Continued on next question...)

Other Interview Questions