.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 2nd, 2001, 05:16 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
linking to a record using ID

<i><b>Originally posted by : andrew (harrison@tiscalinet.it)</b></i><br /><br />i want to link from one page to another in which i'll find more info from the same record so i've used an ID to keep to that record.It doesn't work.<br /><br />Why?<br /><br /><br />LINK<br />__________________________<br /><a href="moto.asp?ID=<%=id%>">click here</a><br /><br /><br />Second page<br />_______________________________________<br /><br /><%id2=request.querystring ("id")<br />sql="select * from models where id='id2'"<br /><br />Set OBJdbConnection = Server.CreateObject("ADODB.Connection")<br />OBJdbConnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=e:userszonalingzonalingue.com
acingbike2sitomoto.mdb"<br />Set RS=OBJdbConnection.Execute(sql)%> <br /><%fotolarge=rs("fotolarge")%><br /><br /><%response.write("&fotolarge&")%><br /><%RS.Close<br />OBJdbConnection.Close%> <br /><br />

Reply With Quote
  #2  
Old April 3rd, 2001, 09:11 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Mage (mage@baltnet.ru)</b></i><br />That's probably because you're suppose to write your SQL string like this:<br /><br />sql="select * from models where id=" & id2<br /><br />And you don't need "& and &"in your last line:<br /><br /><%response.write(fotolarge)%><br /><br />Regards,<br />Mage<br /><br />------------<br />andrew at 4/2/2001 3:16:02 AM<br /><br /><br />i want to link from one page to another in which i'll find more info from the same record so i've used an ID to keep to that record.It doesn't work.<br /><br />Why?<br /><br /><br />LINK<br />__________________________<br /><a href="moto.asp?ID=<%=id%>">click here</a><br /><br /><br />Second page<br />_______________________________________<br /><br /><%id2=request.querystring ("id")<br />sql="select * from models where id='id2'"<br /><br />Set OBJdbConnection = Server.CreateObject("ADODB.Connection")<br />OBJdbConnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=e:userszonalingzonalingue.com
acingbike2sitomoto.mdb"<br />Set RS=OBJdbConnection.Execute(sql)%> <br /><%fotolarge=rs("fotolarge")%><br /><br /><%response.write("&fotolarge&")%><br /><%RS.Close<br />OBJdbConnection.Close%> <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > linking to a record using ID


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway