10.14. Accessibility and Standards

Accessibility and standards, whether you like it or not, are becoming increasingly important. Microsoft is aware of this and has introduced a number of changes.

10.14.1. controlRenderingCompatibilityVersion

The pages section in Web.config contains a new controlRenderingCompatibilityVersion property that determines how controls are rendered by default. The controlRenderingCompatibilityVersion property can be set to 3.5 or 4.0.

<system.web>
  <pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>

Setting controlRenderingCompatibilityVersion to 3.5 will ensure ASP.NET renders as in ASP.NET 3.5. If, however, you set controlRenderingCompatibilityVersion to 4.0, then Microsoft says that the following will ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.