Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2007, 10:23 PM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Generated XHTML

Hi all,

Been an ASP developer for years and finally delving in to ASP.NET 2.0 with this book but one thing I'm finding that concerns me: Marco states (and other Wrox writers confirm here:http://p2p.wrox.com/blog.asp?BLOG_ID...rchTerms=XHTML) , that ASP.NET produces XHTML compliant markup. As far as I can see, a lot of the ASP.NET menu controls produce table based layouts which are definitely NOT XHTML compliant (tables should only be used for tabular data - never layout).

The question is - can this be remedied? Is there a way to customize the code outputted by these controls? Are there other controls that are "Microsoft Compliant" as opposed to just plain old compliant?

I look forward to plenty of future discussions here as I wind my way down the ASP.NET road!

Thanks in advance for your help

Regards

Bob:D

 
Old January 23rd, 2007, 11:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I never thought of tables vs CSS to be an issue relating to XHTML? Maybe this is the case, but I thought that XHTML was a standard talking about how to create HTML tags in a more XML compatible manner.

Layout is ASP.NET has always been a combination of tables and CSS. To make a pure CSS layout would be a lot harder, but definitely possible. But that's not how I would spend the next 3 months of my life - I don't see a payoff that would make it worthwhile.

The future after AJAX is still a bit murky, but I'd bet on a XAML compatible protocol in the future, which is starting out now as WPF/E. If this XAML is indeed the future of MS Web technology, then the layout issues we face today could be completely moot.

Is there anyone who would be sad to see these layout issues go away? XAML also has a form of stylesheets, but the difference is that HTML may go away, and therefore the question of tables would not be an issue.

Has anyone wondored why HTML got to version 4, and then quit? God knows it's not perfect, so there must be another reason nobody cares about moving it forward...

Eric

 
Old January 28th, 2007, 02:00 AM
Authorized User
 
Join Date: Jan 2007
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your dreams have come true Mr. Fett, because of this:

http://www.asp.net/cssadapters/

You can do pretty much whatever the heck you want with them...the more I learn ASP.NET 2.0, the more I realize that questions like these have a resounding "Yes" answer. Not quite so with other server-side languages.

I think it'll be quite some time before a new markup language eclipses HTML though...no matter how halted HTML's development is.
 
Old February 4th, 2007, 06:28 PM
Authorized User
 
Join Date: Jan 2007
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How did the css adapters turn out as a solution?

 
Old February 6th, 2007, 10:15 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can see this for css vs tables:

http://www.hotdesign.com/seybold/index.html

the restrictions that visual studio 2003 places to xhtml were one of the reasons for I pass to visual studio 2005


 
Old February 7th, 2007, 01:33 AM
Authorized User
 
Join Date: Jan 2007
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Maxxim
 you can see this for css vs tables:

http://www.hotdesign.com/seybold/index.html

the restrictions that visual studio 2003 places to xhtml were one of the reasons for I pass to visual studio 2005
Well you can force VS 2005 to markup that way (css and divs etc.) using the css adapters that I linked in my first post.






Similar Threads
Thread Thread Starter Forum Replies Last Post
add xsl style sheet in generated xhtml using xslt. kvmreddy XSLT 2 April 10th, 2006 02:22 PM
asp pages to xhtml BrendonMelville Ajax 1 March 14th, 2006 01:54 PM
convert asp pages to xhtml BrendonMelville HTML Code Clinic 1 March 14th, 2006 01:52 PM
convert asp pages to xhtml BrendonMelville XML 1 March 14th, 2006 11:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.