Hello,
I'm trying to show a user options based on their access level, which is determined by a session variable pulled from a numeric value in a table. Basically, the higher your access level, the more options (links) that would be displayed for you. Each level would add new options, adding on to the previous level of options.
I tried using the Select Case code (below) to identify the options to display, thinking that the Select statement would evauluate each statement and act on all of the true statements, but it only acts on the first statement that evaluates to true.
Any ideas? I was trying to stay away from listing the links multiple times.
Thanks.
[sig][/sig]
I'm trying to show a user options based on their access level, which is determined by a session variable pulled from a numeric value in a table. Basically, the higher your access level, the more options (links) that would be displayed for you. Each level would add new options, adding on to the previous level of options.
I tried using the Select Case code (below) to identify the options to display, thinking that the Select statement would evauluate each statement and act on all of the true statements, but it only acts on the first statement that evaluates to true.
Any ideas? I was trying to stay away from listing the links multiple times.
Thanks.
Code:
<% Select Case Session("AccessLevel")%>
<%Case 1, 2, 3 %>
<A HREF="/Edit/srchgcc.asp">Search</A></H3>
<%Case 2, 3 %>
<A HREF="/Edit/newgcc.asp">Submit New GCC</A></H3>
<%Case 3 %>
<A HREF="/Edit/editlogin.asp">Add/Edit Login Details</A></H3>
<% End Select %>