what are the pros/cons of using html controls vs asp controls..like a html text box vs asp text box?
Hi,
Brodly, there are four types of server controls in ASP.NET.
ASP.NET HTML controls
ASP.NET WEb controls
Validation controls
User controls
ASP.NET HTML controls
ASP.NET HTML controls are server-side replicas of the standard HTML tags and are executed by aspnet_isapi.dll. The HTML tags are covverted into HTML controls by using attributes such as ID and RUNAT. After an HTML tag is converted into an HTML control, the tag becomes a server-side object with properties, methods, collections and events.
It is important to remember that HTML controls are included in ASP.NET for backward compatibility. You will use HTML controls when you need to migrate an existing ASP application to ASP.NET platform. To use an HTML control, you need to import the System.Web.UI.HtmlControls namespace to a web form. You can also add these controls by using the HTML tab of the tool box.
No comments:
Post a Comment