Conditional removal of css

Sep 24, 2014 at 4:27 PM
I'm trying to conditionally remove the default css when the user has a certain role. From looking at the documentation is seems that I should be able to do it but so far no success.

I have tried a few combination/variations of the following

<fortyfingers:STYLEHELPER ID="STYLEHELPER1" RemoveCssFile="default.css" IfRole="Registered Users" runat="server" />

what I really want to do is remove the default css if the user is not an admin

Sep 24, 2014 at 4:44 PM
Got it figured out. The order is important. I moved the ifrole to the front before the remove and all is well. Great little module BTW. Thanks for letting us use it.
Sep 24, 2014 at 6:41 PM
Good to hear it worked out.
Did you try
<fortyfingers:STYLEHELPER ID="STYLEHELPER1" RemoveCssFile="default.css" IfRole="!Administrators" runat="server" />
That's what I would use.