I was curious if you can pass a vb variable into back end javascript. I have a page that a user can upload a image and a link to that image. I am executing a reader to pull the link from the database and declare a variable as string = to the reader. when i try to pass it into the script with this code
Response.Write("<script>")
Response.Write("window.open(<%= linkLeft %>,'_blank')")
Response.Write("</script>")
it just comes back as my url/linkLeft instead of just the url of the link in the database. Is there any possible way to pass this variable into the script? I havent really came across anything to do this. i am using this because i want the link to open in a new window so response.redirect is out of the question i believe?
Thanks in advance