Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Links With ID


Message #1 by "Dibyendra Hyoju" <dibyendra@y...> on Mon, 11 Nov 2002 13:34:25
Suppose I have links in one page called showlinks.asp . The other page 
have links like showlinks.asp?ID=101.
How to open the links from such ID?
I really liked this because it's secure.Also How can we make the page not 
viewable from simply typing 

http://someurl.com/showlinks.asp ?
please advice
Message #2 by "SEAK, Teng-Fong" <tfseak@f...> on Mon, 11 Nov 2002 19:13:16 +0100
In VBScript, it's like this:

<% if Request.QueryString("ID") =3D "101" then
'write out whatever you want
%>

> -----Message d'origine-----
> De : Dibyendra Hyoju [mailto:dibyendra@y...]
> Envoy=C3=A9 : lundi 11 novembre 2002 14:34
> =C3=80 : asp_discuss
> Objet : [asp_discuss] Links With ID
>
>
> Suppose I have links in one page called showlinks.asp . The
> other page
> have links like showlinks.asp?ID=3D101.
> How to open the links from such ID?
> I really liked this because it's secure.Also How can we make
> the page not
> viewable from simply typing
>
> http://someurl.com/showlinks.asp ?
> please advice
>
Message #3 by "Scott Reed" <scottr@m...> on Mon, 11 Nov 2002 14:13:55 -0600
One way would be to write a Session variable:

Session("intLinkID") =3D 110

Then, on the link page...something like this...

If Session("intLinkID") =3D "" Then
	Response.Redirect "/nolinkselectedpage.asp"
Else
	intLink =3D Session("intLinkID")
End If

Code to display link info for link # 110

-----Original Message-----
From: SEAK, Teng-Fong [mailto:tfseak@f...]
Sent: Monday, November 11, 2002 12:13 PM
To: asp_discuss
Subject: [asp_discuss] RE: Links With ID


In VBScript, it's like this:

<% if Request.QueryString("ID") =3D "101" then
'write out whatever you want
%>

> -----Message d'origine-----
> De : Dibyendra Hyoju [mailto:dibyendra@y...]
> Envoy=C3=A9 : lundi 11 novembre 2002 14:34
> =C3=80 : asp_discuss
> Objet : [asp_discuss] Links With ID
>
>
> Suppose I have links in one page called showlinks.asp . The
> other page
> have links like showlinks.asp?ID=3D101.
> How to open the links from such ID?
> I really liked this because it's secure.Also How can we make
> the page not
> viewable from simply typing
>
> http://someurl.com/showlinks.asp ?
> please advice
>



  Return to Index