Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Is there a buit-in method to parse a STYLE attribute string? (http://www.velocityreviews.com/forums/t91658-is-there-a-buit-in-method-to-parse-a-style-attribute-string.html)

Henri 11-29-2004 12:40 AM

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







=?Utf-8?B?d2VpY2h1bmcgW01DU0QsIE1DREJBXQ==?= 11-29-2004 02:41 AM

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
>
>
>
>
>
>
>


Henri 11-29-2004 02:59 AM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57