Storing ASP.NET Web Component Properties in Style Sheet

Is it possible to store properties of an ASP.NET web control in a CSS file?Specifially, I'd like to do this for a \[code\]GridView\[/code\].For example: Rather than specifying:\[code\]<asp:GridView ID="myGrid" runat="server" ForeColor="#333333" GridLines="None"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /></asp:GridView>\[/code\]Can I put those colors in a CSS file, and then specify the \[code\]CssClass\[/code\] for the entire GridView?Thanks.
 
Back
Top