How can I get the value of a style defined in a CSS class?
The markup has:
CssClass="grdTextBox" Text="aaaaaaaabbbbbbbccccccc"
The CSS style is:
.grdTextBox {FONT-SIZE: 12px; FONT-FAMILY: verdana; }
The .cs file has:
string cssClass = txtComments.CssClass;
Response.Write(" cssClass is : " + cssClass);
How can I find the value for font size or font family from code behind?
I can find them if they are in a style tag or if they are attributes of the text box. But how can you find the values if they are defined in a CSS class?