Solved

Variable in response redirect

Posted on 2003-11-14
3
223 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

10 Experts available now in Live!

Get 1:1 Help Now