Link to home
Start Free TrialLog in
Avatar of dar3mind
dar3mind

asked on

asp code

Hello

I have dll file to detect the user browser

if he user blocked browser the function ims_check will return 0 else will return 1

i need to add if statement to redirect it to suspend.asp if it's return 1

what's the syntax of asp classic code i can use ?

ThanQ
ASKER CERTIFIED SOLUTION
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dar3mind
dar3mind

ASKER

<%@Language = VBScript%>
<%
if(rs("ims_check")=1 then
              Response.Redirect ("suspend.asp")
 end if
%>

i got error 500 internal server error
Dim icheck
icheck = Request.Form("ims_check ")

if icheck = 1 then
 response.redirect "suspend.asp"
end if
                                       

this working