Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 22nd, 2007, 10:23 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
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

  #2 (permalink)  
Old January 23rd, 2007, 11:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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

  #3 (permalink)  
Old January 28th, 2007, 02:00 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
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.
  #4 (permalink)  
Old February 4th, 2007, 06:28 PM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How did the css adapters turn out as a solution?

  #5 (permalink)  
Old February 6th, 2007, 10:15 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
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


  #6 (permalink)  
Old February 7th, 2007, 01:33 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.