Forums

This topic is locked

Redirection

Posted 17 Nov 2001 14:14:11
1
has voted
17 Nov 2001 14:14:11 Q Qwerty posted:
<font face='Arial'></font id='Arial'>

Dear readers,

i'm rather new to Ultradev and have a problem which needs a quick solution. I need a redirect.asp page, which gets the ID from a link on antoher page. It is imperitive that the URL where the redirect page points to is not visible. Should I set up a table in Access with ID and URL fields or something like that. I would really appreciate any help on this one. Thanks in advance for your replies.

Rein

Replies

Replied 17 Nov 2001 17:16:57
17 Nov 2001 17:16:57 Viktor Farcic replied:
You haven't wrote what language are you using. Following code is for ASP/VBScript. Pass URL as QueryString (in this example varURL) to 'redirection' page. On that page insert following line:
&lt;% Response.Redirect(Request(varURL)%&gt;

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Dear readers,

i'm rather new to Ultradev and have a problem which needs a quick solution. I need a redirect.asp page, which gets the ID from a link on antoher page. It is imperitive that the URL where the redirect page points to is not visible. Should I set up a table in Access with ID and URL fields or something like that. I would really appreciate any help on this one. Thanks in advance for your replies.

Rein


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 18 Nov 2001 19:09:52
18 Nov 2001 19:09:52 Q Qwerty replied:
Thanks for your answer, but it didn't quite work out. Btw, I'm using VBScript. My table has four columns:

1. ID (Autonumber)
2. Name (Text) (Name of the link)
3. ImgURL (Text) (The URL of the image to display)
4. URL (Text) (The actual URL to go to)

I need need to do the following with Ultradev. When I click on the name or image, I want it to go to a redirect.asp page. ( For example,I need to see this: www.domain.com/redirect.asp?ID=3 )
Now the redirect page should take me to the URL corresponding to ID=3. I think I explained it in a reasonable way. Thanks everyone in advance for your solutions (I just can't seem to get it working)

Replied 18 Nov 2001 22:23:51
18 Nov 2001 22:23:51 Viktor Farcic replied:
In redirect page create recordset and filter it with ID passed from previous page. In body (below &lt;body&gt<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle> insert following:
&lt;% Response.Redirect(RecorsetName.Fields.Item("URL".Value)%&gt;

Just change 'RecordsetName'.

If it still doesn't work send me a mail.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks for your answer, but it didn't quite work out. Btw, I'm using VBScript. My table has four columns:

1. ID (Autonumber)
2. Name (Text) (Name of the link)
3. ImgURL (Text) (The URL of the image to display)
4. URL (Text) (The actual URL to go to)

I need need to do the following with Ultradev. When I click on the name or image, I want it to go to a redirect.asp page. ( For example,I need to see this: www.domain.com/redirect.asp?ID=3 )
Now the redirect page should take me to the URL corresponding to ID=3. I think I explained it in a reasonable way. Thanks everyone in advance for your solutions (I just can't seem to get it working)


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic