With asp.net 4.0 Microsoft has taken a great step for rendering controls. Now it will have more cleaner html there are lots of enhancement for rendering html controls in asp.net 4.0 now all controls like Menu, List View and other controls renders more cleaner html. But recently i have faced strange problem in rendering controls I have my site in asp.net 3.5 and i want to convert it in asp.net 4.0. I have applied my style as per 3.5 rendering and some of items are obsolete in asp.net 4.0. Modifying style sheet was a tedious job here asp.net 4.0 compatibility setting comes into help.
Asp.net 4.0 compatibility settings provides full backward compatibility in terms of the rendering controls. You can assign this in your web.config section like following.
<system.web>
<pages controlRenderingCompatibilityVersion="3.5|4.0"/>
</system.web>
Hope this help you!!!
Technorati Tags: ASP.NET 4.0,controlRenderingCompatibility
0 comments:
Post a Comment
Your feedback is very important to me. Please provide your feedback via putting comments.