Andrew Stopford's Weblog

poobah

Sponsors

News

Articles

Family

Old Blogs

Styles and ASP.NET controls

Maybe someone knows this? When you create a ASP.NET form and drag a few components onto it you can then setup styles for each component. When you have say 10 things to change per element and a form with 20 elements then its a real ball ache. What would be nice is a HTML style CSS sheet so you can block style a component. Now this could be done by creating custom components but it would so nice if this was available out of the box.

Comments

Lawrence Oluyede said:

We're developing something like that (a skin feature) in our internal custom control library. It's something like predefined skins...
# July 7, 2003 10:23 AM

rick said:

Most of the settings in simple forms (textbox, dropdownlist, etc) can be set with CSS. I never use the webcontrol properties except for CssClass.

There are a few properties (mainly with the more complex controls like the calendar or datagrid) that override CSS settings.

Technically you shouldn't style your form elements in the HTML or ASP.Net syntax. That should all be done in CSS if possible.
# July 7, 2003 11:16 AM