View
<asp:HiddenField ID="hfB2BWindscreen" runat="server" Value="!" ClientIDMode="Static" />
codebehind
Dim _currentUser As UserInfo = UserController.GetCurrentUserInfo()
For Each BrandRoleName In {"GB", "DULUX", "CP", "WATTYL", "PM", "M10", "ITM", "REPORT"}
If _currentUser.IsInRole(BrandRoleName) Then
If Not String.IsNullOrWhiteSpace(hfB2BWindscreen.Value) Then hfB2BWindscreen.Value &= ","
hfB2BWindscreen.Value &= BrandRoleName
End If
Next