Closed Timo-Breumelhof closed 2 years ago
You can pass multiple values to a condition like so:
<fortyfingers:STYLEHELPER ID="SH1" IfRole="Superusers|Administrators" Content="You are important!" runat="server" />
But if you want an option for anybody but Administrators and SuperUsers, you cannot use:
<fortyfingers:STYLEHELPER ID="SH2" IfRole="!Superusers|!Administrators" Content="You are not important!" runat="server" />
As this will check for not SuperUser OR not Administrator, which will return True for Administrators (as they are not a Superuser)
You can pass multiple values to a condition like so:
<fortyfingers:STYLEHELPER ID="SH1" IfRole="Superusers|Administrators" Content="You are important!" runat="server" />
But if you want an option for anybody but Administrators and SuperUsers, you cannot use:
<fortyfingers:STYLEHELPER ID="SH2" IfRole="!Superusers|!Administrators" Content="You are not important!" runat="server" />
As this will check for not SuperUser OR not Administrator, which will return True for Administrators (as they are not a Superuser)