Variable in response redirect

Posted on 2003-11-14
Last Modified: 2008-03-04
I have a variable that is declared by :

<%strLan = Request.QueryString("lan")%>

and a link that is :

<%IF session("ok") = FALSE THEN Response.Redirect "default.asp?login=niet&lan=strLan" %>

But it keeps writing lan=strLan !! I tried everything to get it to display lan=1 or lan=3 (till 8).

Does anybody know how to do this ?
Question by:voerman
  • 2
LVL 43

Accepted Solution

TimCottee earned 40 total points
ID: 9748018
Hi voerman,

<%IF session("ok") = FALSE THEN Response.Redirect "default.asp?login=niet&lan=" & strLan%>

Should do it.

Brainbench MVP for Visual Basic

Author Comment

ID: 9748073
thx that did it, never solved so quick
LVL 43

Expert Comment

ID: 9748139
You are welcome.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question