[thelist] ASP.Net and web standards

Ken Schaefer ken at adOpenStatic.com
Tue Jul 13 07:23:04 CDT 2004


Maybe you should get better developers? :-)

Everything is ultimately under their control - if they really want to, they
can inherit from just about any class in the framework, overwrite any method
they want, and have the control output anything they like. Obviously, this
can be a bit of work unfortunately. That said, all the public facing
webpages I do now are all XHTML v1 Transitional compliant, so it's
definately doable.

That said, .NET has adaptive rendering, so, you won't see the same output
for the different browsers. For downlevel browsers, by default, you will get
HTML v3.2.

For webcontrols, you can, possibly, use the cssclass= attribute (though that
doesn't help you if you really need to use IDs to style the classes).
Instead, you'd need to get the ids of the classes /server-side/ (where
ASP.NET knows about the ids), and use those to produce your styles.

For ASP.NET v2 (Whidbey), XHTML will be more (if not completely) supported,
as will various other standards:
http://weblogs.asp.net/scottgu/archive/2003/11/25/39620.aspx

There are some good ASP.NET lists here: www.aspadvice.com, including a list
on client-side issues. There are a few good control developers who are on
that list who can probably help you out if you have more specific issues
that you can tell us about.

Cheers
Ken


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Bird, Graham" <Graham.Bird at rspb.org.uk>
Subject: [thelist] ASP.Net and web standards


: Can someone explain how ASP.Net affects the output of HTML, if at all?
:
: Our developers have just made the transition to .Net for an online form
: (multi-page) and they are having trouble keeping the XHTML template I
: supplied clean and valid. The finished form has old HTML 4.0 style tags in
: it (upper case, no closing slashes, etc.) and I'm not sure whether this is
: the developers or the technology.
:
: Also, I had used id attributes to style certain form elements, and their
: code has overwritten the ids with the same text as the form element name
: attribute (if that makes sense).
:
: How much of this is under their control? For web standards ASP.Net seems
: like a step back to me right now.
:
: Any insight would be great.
:
: Thanks,
: Graham



More information about the thelist mailing list