Last post Jul 18, 2007 08:52 AM by Plaid
May 17, 2007 11:07 AM|BenCh1|LINK
I like to define the way my pages look in an external CSS file. It's quite a good practice as it provides another way to abstract your content from your presentation. But ASP .NET puts lots of inline style declarations in its output code, which are sometimes
extremely hard to get rid of.
You can use ControlAdapters to good effect on many controls, but on things like the Validator controls, you're fighting a losing battle.
I've been trying for months to adapt the validator control so I can specify CSS classes INSTEAD of inline styles, but it's really difficult because the actual validation logic is buried deep in the framework.
Here's how I think the validators should be styled:
keep the valid className.
Does anybody else agree with me that this is a better way to do it?
Other controls should be more css/standards compliant too, but this is the one that bugs me most of all.
Jul 18, 2007 08:52 AM|Plaid|LINK
yes i totally agree with you. asp.net's built in generated code is really terrible (still). we do really want full standards based generated stuff.
it's sometimes almost impossible to modify the appearance of the page. and, i think that's the one of the reasons, most web2.0 applications use open source (php, ruby etc) to build their apps.