Solved

How can I update a URL returned in a query?

Posted on 2008-10-20
3
275 Views
Last Modified: 2012-05-05
Using ASP/VBscript with an Access data base. One of the items returned in the record set is defined as text and contains this URL value:

http://www.signaturetravelnetwork.com/product/cruise/ship_builder/overview.cfm?product_id=69&sup_id=26&utp=consumer&agency_id=__agency_key__&type=consumer

Before I can use this URL on my web page I need to replace '__agency_key__' with the value 826. How do I manage this?
0
Comment
Question by:travelq13
  • 2
3 Comments
 
LVL 16

Expert Comment

by:brad2575
ID: 22756621
Replace(URLSTring, "__agency_key__", "826")

0
 

Author Comment

by:travelq13
ID: 22759697
I am not really certain how to use this with a value returned in the recordset.
0
 
LVL 16

Accepted Solution

by:
brad2575 earned 250 total points
ID: 22759836
wherever/however you are displaying this on the screen you would use this.

So if you have

Response.write(rs("URLValue"))

You woudl replace it with this:

Response.write(Replace(rs("URLValue"), "__agency_key__", "826")
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question