White Rose
January 5th, 2003, 04:34 PM
I have a script to track downloading from user. When they click to link http://www.mydomain.com/download.asp?id=10 then they can download what they want.
In download.asp(ASP 3.0), I use:
id = Request.QueryString("id")
'Connect to database and return path of file
path = rs("path")
rs.Close
Set rs=Nothing
myConn.close
Set myConn=Nothing
Response.Clear
Response.Redirect path
But if path is a script's path (ex: http://www.mydomain.com/default.asp) then that script is executed.
How can i allow user download default.asp as normal file.
thanks!
PS: Sorry but I don't know where put this thread :confused:
In download.asp(ASP 3.0), I use:
id = Request.QueryString("id")
'Connect to database and return path of file
path = rs("path")
rs.Close
Set rs=Nothing
myConn.close
Set myConn=Nothing
Response.Clear
Response.Redirect path
But if path is a script's path (ex: http://www.mydomain.com/default.asp) then that script is executed.
How can i allow user download default.asp as normal file.
thanks!
PS: Sorry but I don't know where put this thread :confused: