Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LNKING YOUR ASP PAGE WITH ANOTHER URL SITE 2

Status
Not open for further replies.

ifeyinwa

Programmer
Mar 26, 2003
112
US
hey guys have an intresting questions

* A user selectes from a list of options from an asp page. when he clicks on this option which rep a record in an access DB it pulls out all the information/fields related to that record selected..On the page where the Information is displayed I have a button (link) that takes you to an external site. Now this is what I want to achieve.

This external link has so many different pages the only thing that differentiates these pages is the number of the bill at the end of url before the .htm eg ; and so on

Now my asp page(that displays a particular record)like I said above has a field bearing these numbers called the billNo field that is also displayed. I want the link button
of the asp page to link exactly to the external site that corresponds with the billNo on my asp.

This is the link address I put on my button.
" '" &<% Request.Form("BILLNO")%>& "'.htm">

But when the url opens I get only this showing in the address bar which is no page really

Does anyone know how I can get around this. Thanks
 
I tried the above and the correct url is not opening.
This is what the addresses Bar has


*below is my asp code for the page

<%
Test = request.querystring("Test")
StrbillNo = Trim(Request.form("billNo"))
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("adodb.Recordset")
Conn.Open "eiwp"
SQLQuery = "Select * from tblopgaCOm2 WHERE Test = " & Test
RS.Open SQLQuery ,Conn,1,1
%>

Then on the button that has the link below is what I have

<"
 
ifeyinwa,

People here are always trying to help. You should post your problem very clearly and acknowledge the people who help you with a star.

State your problem clearly. As i see from the url your variable is not getting passed correctly.

-VJ
 
if BILLNO is a value from the database you will need to put

Code:
<a href="[URL unfurl="true"]http://mlis.state.md.us/2004rs/billfile/<%=rs.fields("billno")%>.htm">Link[/URL] Text</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top