Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Response.Redirect variable depending on a SQL result. How to ?

$
0
0
Hello,

I have code below

SQL is ok and results as I need

Problem is add result just into Response.Redirect

I tried to put directly from sql, put result into a variable like below and use the variable

But it is not working as expect

Any idea ?

Code:
<%
set rs=conn.execute("select url from encurta where id="&request.querystring("id")&"")
encurta=rs("url")
Response.Redirect "encurta"
%>

Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>