Tuesday, 18 December 2018

HTML Server Controls vs. ASP.NET Server Controls


Given that Microsoft has provided two distinct categories of server controls (HTML and ASP.NET server controls), with both sets of controls sharing some degree of overlapping functionality, you may be a bit confused as to which set of controls you should use within your web forms. The short answer is simply this: you can use both! It's perfectly okay to mix the usage of HTML server controls and ASP.NET server controls within your web forms -- using one set of controls does not restrict you to that control type. Depending on your preferences and web page requirements, there may, however, be reasons to choose one set over the other. Despite the overlap in functionality, there are some clear distinctions between these controls that you should be aware of when developing your ASP.NET web form pages (we'll be covering the ASP.NET behaviors listed below throughout this chapter):
awroxtbl1.png (click to view image)
awroxtbl1a.png (click to view image)

No comments:

Post a Comment