Can i use STYLESHEETS to set styles for ASP.NET controls??

L

Logan

Can the subject be done, or is setting of styles via styles sheets limited
only to classic html controls?
Quite obviously i am new to asp.net.

thank you all.
 
D

darrel

Can the subject be done, or is setting of styles via styles sheets limited
only to classic html controls?
Quite obviously i am new to asp.net.

Most controls have a 'CSSClass' property that you can set and then style to
via CSS.

-Darrel
 
D

Dave Fancher

You can also typically do it though the Attributes collection of a given
control. This allows you to either work with a class or "free form" styles.
I have included links to the documentation for the MSDN Attributes
collection for classes derived from both
System.Web.UI.WebControls.WebControl and System.Web.UI.UserControl.

Web Controls
http://msdn.microsoft.com/library/d...webcontrolswebcontrolclassattributestopic.asp

User Controls
http://msdn.microsoft.com/library/d...ystemwebuiusercontrolclassattributestopic.asp

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top