Overriding ASP.NET Standard HTML Controls

I am using ASP.NET 3.5.

I noticed some confusion in terms of the output for ASP.NET controls. For example, the asp: flag makes it unnecessary if disabled, which is an issue for XHTML compliance.

Is there a way to override the method etc. to control the Xhtml control provided to you.

+2


source to share


2 answers


You can do this with Control Adapters .



+9


source


You can use control adapters to change the way you control. For example, many people like to use CSS layouts, and because ASP.NET controls render tables, CSS-friendly adapters you can use instead.



+1


source







All Articles