Skip to main content
Inspiring
October 8, 2006
Question

challenging question

  • October 8, 2006
  • 4 replies
  • 337 views
Hii, using ASP and MS ACCESS

I am making a page with useful links and I would like to hide the links so
that visitors dont copy my links page into their website

What I tried to do it basically use Request.Querystring and Request.Redirect

I have two pages links.asp and goto.asp

in Links.asp the code is

<table width="450" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="25"><a href="goto.asp?gotoKind=1"
target="_blank">ClickBahrain</a></td>
</tr>
<tr>
<td><a href="goto.asp?gotoKind=2">Bahrain Nightlife</a></td>
</tr>
</table>

AND

the code in goto.asp is

<%@LANGUAGE="VBSCRIPT"%>
<%
clickbahrain=Request.QueryString("gotoKind")
%>

<% if clickbahrain="1" then response.Redirect(" http://www.clickbahrain.com")
end if %>


<% if clickbahrain="2" then
response.Redirect(" http://www.bahrainnightlife.com") end if %>

this will hide the link from the users. this works fine but I have to
display more than 450 websites and I want to do this via a database. so how
can i do this



This topic has been closed for replies.

4 replies

Inspiring
October 10, 2006
yeah but manually writing the code the way I showed an example in goto.asp
for more than 500 websites will be sooo much time consuming and moreover I
want to drive it from the database to perform easy search

I want to do it through a DB, pls help

thanks


Inspiring
October 8, 2006
The links are contained in server scripting that never makes it to the
client.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Techy" <anwar@clickbahrain.com> wrote in message
news:egb0ad$nsa$1@forums.macromedia.com...
>i dont get it how can i do this ?? pls explain
>
> i dont want the users to see the links but be able to go to website
> without seeing the link cos people copy the page and stuff
>
>
>


Inspiring
October 8, 2006
i dont get it how can i do this ?? pls explain

i dont want the users to see the links but be able to go to website without
seeing the link cos people copy the page and stuff



Inspiring
October 8, 2006
Sounds like you're answering your own question :) You'd put all your links
into a recordset and then filter it as you'd do normally. At the bottom,
you'd have

Response.Redirect RS("URL")

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004