View Single Post
  #8 (permalink)  
Old July 18th, 2004, 07:30 PM
rptasiuk rptasiuk is offline
Authorized User
Join Date: Jul 2004
Location: Barrie, Ontario, Canada.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Use a function and call it in place of response.redirect. Like this...

strLocation = "testlink.asp"

 openlink(strLocation) ' replaces response.redirect
function openlink(link)
<SCRIPT language='javascript'>' <%=strLocation%> ');</SCRIPT>
end function

Of course you can use all the parameters in the javascript for setting the new window, this is just a simple example of doing it in ASP. You could also use response.write inside of the code block instead of switching to HTML to create the function. your choice.
Reply With Quote