One the top of the page I'm trying to add some code is:
<%@language="javascript"%>
The code I'm trying to add is:
<%
if not session("userinfo")="" then
%>
xxxx
<%
else
response.redirect "%>
<%end if%>
It keeps erroring out by giving me the following error:
Error Type:
Microsoft JScript compilation (0x800A03ED)
Expected '('
Is there a way to check a session variable and redirect to a page if there's no session variable
When I use this code in my asp page with <%@LANGUAGE="VBSCRIPT"%> at the top, it works fine but I need it to work with <%@language="javascript"%> at the top.
Can someone convert my VBScript to JavaScript???
<%@language="javascript"%>
The code I'm trying to add is:
<%
if not session("userinfo")="" then
%>
xxxx
<%
else
response.redirect "%>
<%end if%>
It keeps erroring out by giving me the following error:
Error Type:
Microsoft JScript compilation (0x800A03ED)
Expected '('
Is there a way to check a session variable and redirect to a page if there's no session variable
When I use this code in my asp page with <%@LANGUAGE="VBSCRIPT"%> at the top, it works fine but I need it to work with <%@language="javascript"%> at the top.
Can someone convert my VBScript to JavaScript???