Is there a buit-in method to parse a STYLE attribute string?

H

Henri

Hi!

consider this :
<div runat="server" id="mydiv" style="color:white;width:200px;" />

the styles contained in the style attributes are automatically parsed to the
Style property.
Is there a built-in method to import another string to the Style property.
Some kind of:

Me.Style = ParseCssText("color:white;width:200px;")

And the same to build a css string from the Style property?

I know it might not be very difficult to do it myself but if there's already
a buit-in method to do that, that would stupid :)

Thanks

Henri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top