asp code

dar3mind
dar3mind used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
if(rs("ims_check ")=1 then 
              Response.Redirect ("suspend.asp") 
 end if  

Open in new window


or

Dim icheck 
icheck = Request.Form("ims_check ") 

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

Open in new window

Author

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

i got error 500 internal server error

Author

Commented:
Dim icheck
icheck = Request.Form("ims_check ")

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

this working

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial