I have an old asp site that I need to modify. We have a menu item that shows under a certain condition with a usertype field:
<% IF Session("UserType") = 1 OR Session("UserType") = 7 THEN %>
and then we show the menu item.
We recently modified a database field so that a single user record can be assigned multiple types in a comma delimited list. So instead of UserType=1, for our condition, we need to check if Session("UserType") contains 1 in a comma delimited list.
assuming users will have values like 1,7,8 or 1,3,7 how can I scan and confirm a "contains" condition in asp vb?