Wednesday, January 20, 2010

How do I use CSS with ASP.NET server controls?

In regular HTML, you could define a style as follows that would apply to all the labels on a page.





label{


font-family: #000000;


}





Using ASP.NET and %26lt;asp:Label%26gt; how do I style all the labels on my page?How do I use CSS with ASP.NET server controls?
You just need to make a style sheet, basically the same as CSS but save it as a .asp file then you will need to include the file with your .asp page





%26lt;!--#include file=';../style.asp'; --%26gt;

No comments:

Post a Comment