That's just wrong.  I am an ASP.NET developer and I am ALSO a web
standards and CSS fan.  I try as hard as possible to keep my code
compliant.  I don't think it's 100% possible, but I do manage to keep my
code at least 90% standards-compliant.  The only offenders you can't
easily get rid of are the weird ViewState tags (which you can choose NOT
to use, if you don't use post-back forms) and .NET's weird FORM tags.  I
do not use the non-compliant and bloated Controls like DataGrids, and
instead output tabular data using Repeaters which allow you to even
avoid using tables if you wish.

I think I should write an article on writing standards-compliant .NET
code since so many people ask about it and can't seem to find the right
resources.

Francesco




On Thu, 27 Jan 2005 10:29:08 -0000, "Kornel Lesinski"
<[EMAIL PROTECTED]> said:
> On Thu, 27 Jan 2005 10:06:12 -0000, Peter Goddard
> <[EMAIL PROTECTED]>  
> wrote:
> 
> I've recently had a task to write stylesheet for ASP.Net page and I was  
> really
> shocked how BAD that code is.
> 
> Coder that wrote that didn't have any idea of web standards and he said  
> that
> it's generally impossible to make this code cleaner.
> 
> Is it really?
> 
> Can DataGrids have <th> for headers?
> Do labels have to be <span class="label">?
> Does it have to insert &nbsp; everywhere?
> Does it have to make "javascript:" urls?
> 
> Most asp.net+standards articles describe lengthy and hacky ways to force  
> ASP
> to output XHTML, but maybe there is a simple way just to make it semantic 
> HTML4 Strict?
Francesco Sanfilippo
-------------------------------------------
Blackcoil Productions - http://blackcoil.com 
URL123 Link Service - http://url123.com 

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to