Print Page | Close Window

Are ASP.NET pages XHTML compatible?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26908
Printed Date: 28 March 2026 at 8:47am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Are ASP.NET pages XHTML compatible?
Posted By: joel
Subject: Are ASP.NET pages XHTML compatible?
Date Posted: 29 January 2009 at 11:48am
Hi...........,
Are ASP.NET pages XHTML compatible?




Replies:
Posted By: velly
Date Posted: 11 February 2009 at 6:19am
Yes. It is compatible. Individual controls render markup that is compatible with the XHTML 1.1 standard. It is up to you, however, to include the appropriate document type declaration and other XHTML document elements. ASP.NET does not insert elements for you to ensure XHTML compatibility. 

-------------
http://www.semaphore-software.com/software-solution/asp.net-development.htm" rel="no follow - ASP.Net Development


Posted By: vikas
Date Posted: 17 February 2009 at 9:50am
Yea of course both are compatible together..


-------------
http://www.webdesigningcompany.net/" rel="no follow - Web design           
Web Design New Yk


Posted By: scottage
Date Posted: 15 June 2009 at 1:12pm
Which IDE are you using? Visual Studio 2005/8 and Visual Web Developer 2005/8 CAN both generate XHTML; check the Tools > Options menu, you'll see the check boxes to use. Be careful; XHTML compliance does not mean correct semantic markup - the Login control (for instance) generates valid XHTML but it is semantically incorrect (it uses a table where one should not be used), you'll also find other controls (the navigation controls are a good example) where they are XHTML compliant but sematically incorrect. You can control the output of any server control by using a control adapter to modify the outout of the control to be both XHTML compliant and sematically correct.

-------------
http://www.realwebdevelopers.com" rel="nofollow - Developing real world websites


Posted By: caster
Date Posted: 16 June 2009 at 2:39pm
scottage is right, the IDEs produce XHTML compliant code but uses tables quite a lot, especially for repeater data controls. There is a css-friendly control adapter that was initially written for ASP.NET 2.0. Check it here http://code.google.com/p/aspnetcontroladapters/


-------------
" rel="nofollow - Car Customization details but only if you're interested ...


Posted By: frida189
Date Posted: 30 October 2010 at 10:40am
Yes, Individual controls render markup that is compatible with the XHTML 1.1 standard.


Posted By: Panzertechnologies
Date Posted: 07 March 2013 at 8:31am

Hire Dot NET Developers, ASP NET Programmer





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net