473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

calling recordset values inside html link

Hello group,

I'm again having trouble putting ASP records INSIDE html link.

Here's the string I put inside Access field:

No room number specified (<a
href='contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>'>u pdate</a>)

but it is not working. The link created in my html output puts out asp
part LITERALLY and does not put the VALUE of the recordset.

This didn't work either:

No room number specified (<a
href="contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>">u pdate</a>)

Could someone please tell me how to do this?

thanks in advance,

crispy
Jul 19 '05 #1
3 3056
So, you're saying that when you load the page and do a view-source, you see:

No room number specified (<a href='contact.asp?subject=corrections/addition
for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>'>u pdate</a>

Is this in a .ASP page as opposed to a .HTM page, and are you loading it via
http:// as opposed to file://?

Ray at work
"crispy <>" <polaatx@ REMOVE THIS yahoo.com> wrote in message
news:tv********************************@4ax.com...
Hello group,

I'm again having trouble putting ASP records INSIDE html link.

Here's the string I put inside Access field:

No room number specified (<a
href='contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>'>u pdate</a>)

but it is not working. The link created in my html output puts out asp
part LITERALLY and does not put the VALUE of the recordset.

This didn't work either:

No room number specified (<a
href="contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>">u pdate</a>)

Could someone please tell me how to do this?

thanks in advance,

crispy

Jul 19 '05 #2
crispy <> wrote on 09 jan 2004 in microsoft.public.inetserver.asp.general:
No room number specified (<a
href='contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>'>u pdate</a>)


Are you certain you are using Jscript serverside ?

Why the () ?

If Jscript then casesensitive fields, item, value

If VBscript then single quotes not allowed

Try:

<% = Recordset1.fields.item("group_id").value %>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
I figured out that I need to dim the recordset value before I call on
it. I think that is the problem. Somehow I kept thinking that asp
would fill in the value (Recordset1.Fields.Item('group_id').Value) as
it is creating the page, but apparently that is not the case. crispy

On Fri, 09 Jan 2004 15:53:42 -0500, "crispy <>" <polaatx@ REMOVE THIS
yahoo.com> wrote:
Hello group,

I'm again having trouble putting ASP records INSIDE html link.

Here's the string I put inside Access field:

No room number specified (<a
href='contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>'> update</a>)

but it is not working. The link created in my html output puts out asp
part LITERALLY and does not put the VALUE of the recordset.

This didn't work either:

No room number specified (<a
href="contact.asp?subject=corrections/addition for AASG.info group ID
<%=(Recordset1.Fields.Item('group_id').Value)%>"> update</a>)

Could someone please tell me how to do this?

thanks in advance,

crispy


Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: gf | last post by:
<script> function testme(testvar) { if (testvar=='1') { alert('testvar=1'); document.open(); document.write('This is just some text<br /><br />"); document.write('<a...
5
by: elsenraat_76 | last post by:
Hello! I was wondering if someone could help me out with a problem I'm having? I'm trying to input a javascript value into an anchor tag (from a function), but don't have an event to call the...
22
by: Gerry Abbott | last post by:
Hi all, I having some confusing effects with recordsets in a recent project. I created several recordsets, each set with the same number of records, and related with an index value. I create...
5
by: j.mandala | last post by:
Someone is trying to run my Access 2002 database under Access 2003. He has had a number of problems: 1) i used the MSComCt2.ocx for it's Date and Time picker. I can't find it under 2003. Do I...
30
by: Tim Marshall | last post by:
Here's the scenario, A2003, Jet back end, illustrated with some cut down code at the end of the post: A proc dims a snapshot recordset (dim rst as Dao.recordset) and opens it. There are several...
4
by: Jack | last post by:
Hi, I am trying to run an example code from a book. However I am getting the following error message: Number: -2147217900 Description: Syntax error or access violation Source: Microsoft OLE...
2
by: Jim M | last post by:
I rarely deal with recordsets directly with code, since I usually use Access queries, so be patient with this question. I want to open a recordset with various default variables used by my program....
2
by: wallconor | last post by:
Hi, I am having a problem using Dreamweaver CS3 standard recordset paging behavior. It doesn’t seem to work when I pass parameter values from a FORM on my search page, to the recordset on my...
4
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi Guys, thanks for your help yesterday, I've got one more question, then I think I'm done for now,... Is it possible to insert recordset data in a javascript, for instance I have a javascript...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.