I am using a session to allow viewing of a page as follows
<%If lcase(Session("Accesslevel") = "" Then
Response.redirect "./login.asp?Redirect=" &Request.Servervariables("URL"
End if%>
I also have a drop down menu I would like to hide unless the session value is % this is so admins can see recordsets based on this session value. the drop down code is as follows:
<select name="tranid" id="tranid">
<option value="%">All</option>
<%
While (NOT RSTranscriptionist.EOF)
%>
<option value="<%=(RSTranscriptionist.Fields.Item("lRecordID".Value)%>"><%=(RSTranscriptionist.Fields.Item("Name".Value)%></option>
<%
RSTranscriptionist.MoveNext()
Wend
If (RSTranscriptionist.CursorType > 0) Then
RSTranscriptionist.MoveFirst
Else
RSTranscriptionist.Requery
End If
%>
</select>
I have tried response.write with if statements but keep getting errors any Ideas on how to hide the menu unless session value = %
If knowledge were power I would be a AAA battery!
<%If lcase(Session("Accesslevel") = "" Then
Response.redirect "./login.asp?Redirect=" &Request.Servervariables("URL"
End if%>
I also have a drop down menu I would like to hide unless the session value is % this is so admins can see recordsets based on this session value. the drop down code is as follows:
<select name="tranid" id="tranid">
<option value="%">All</option>
<%
While (NOT RSTranscriptionist.EOF)
%>
<option value="<%=(RSTranscriptionist.Fields.Item("lRecordID".Value)%>"><%=(RSTranscriptionist.Fields.Item("Name".Value)%></option>
<%
RSTranscriptionist.MoveNext()
Wend
If (RSTranscriptionist.CursorType > 0) Then
RSTranscriptionist.MoveFirst
Else
RSTranscriptionist.Requery
End If
%>
</select>
I have tried response.write with if statements but keep getting errors any Ideas on how to hide the menu unless session value = %
If knowledge were power I would be a AAA battery!