Solved

Variable in response redirect

Posted on 2003-11-14
3
224 Views
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 ?
0
Comment
Question by:voerman
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
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.

Tim Cottee MCSD, MCDBA, CPIM
Brainbench MVP for Visual Basic
http://www.brainbench.com
0
 

Author Comment

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

Expert Comment

by:TimCottee
ID: 9748139
You are welcome.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now