![]() |
Is there a buit-in method to parse a STYLE attribute string?
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 |
RE: Is there a buit-in method to parse a STYLE attribute string?
Me.mydiv.Style.Add("width","200px")
Me.mydiv.Style.Add("color","white") "Henri" wrote: > 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 > > > > > > > |
Re: Is there a buit-in method to parse a STYLE attribute string?
Sorry but this doesn't answer my question :-)
Thanks anyway "weichung [MCSD, MCDBA]" <weichungMCSDMCDBA@discussions.microsoft.com> a écrit dans le message de news:EBD4EFC4-9259-4EF6-9FC8-F87F34B2B45D@microsoft.com... > Me.mydiv.Style.Add("width","200px") > Me.mydiv.Style.Add("color","white") > > "Henri" wrote: > > > 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 > > > > > > > > > > > > > > > |
| All times are GMT. The time now is 12:52 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.