List Info

Thread: Determining details of CSSClass of a server control at runtime




Determining details of CSSClass of a server control at runtime
user name
2006-12-09 22:19:02
Group,
If I have a CSS class defined in a .css file, let call it
StandardTextBox part of which defines the font to be used:
"font: 10px
arial". Then I assign the StandardTextBox class to the
CssClass
property of a server control. Is there a way, on postback in
code
behind, that I can determine that this control is indeed
using 10px
arial for its font?

FYI, I need to know this in order to do some dynamic sizing
elsewhere
using Graphics.MeasureString().

Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http
://groups-beta.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )