Kornel Lesinski wrote:
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.

Can DataGrids have <th> for headers?

Don't use DataGrids, they're horribly uncompliant, its not overly hard to write your own Custom Server Control that replaces it


Do labels have to be <span class="label">?

Only use <asp:label> if you want to programmattically set CSS positioning properties, otherwise use <asp:Literal> or the .InnerHTML property of the base HtmlControl class (provided you've runnat'd the containing tag)


Does it have to insert &nbsp; everywhere?

...News to me, that sounds like a problem with the IDE

Does it have to make "javascript:" urls?

Thats to do with Postback... I never rely on Postback and Viewstate or Runatt'd <form> elements, just use "If Not (Request.Querystring Is Nothing) Then", it works essentially the same, although you will have to redefine control .Text and .InnerHtml properties



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?



Yes... Most of the problems with web-standards with ASP.Net come from the System.Web.UI.WebControl classes, provided you stay away from those, you retain complete control.


The only exceptions being the WebControl.Repeater and WebControl.Literal classes, which are perfectly fine

HTH
--
-David R
******************************************************
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