[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Convert Style Object to Text String of Style Attributes

Earl777

1/23/2003 12:11:00 AM

When I create a button, set some of it's style attributes, and render it to
the screen and us viewsource to see it, the result is listed below

<input type="submit" name="Top" value="Main" id="Top"
style="color:White;background-color:Black;border-color:Black;font-family:Ari
al;font-size:7pt;font-weight:bold;height:20px;width:70px;" />

Some method in .NET converts the style attributes of the Style Object to the
string 'style="color:White;..."'

What is it???

I would like to be able to define a style using Style s = new Style(); and
then render the object to a string of style attributes.

Thanks

Earl