<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>ASP problem | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/</link>
  <description>A Scripting forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>07/23/04, 205 49 2004 2004:%i:1090590543 09:49:03</pubDate>
  <lastBuildDate>06/07/13, 158 33 2013 2013:%i:1370594013 04:33:33</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Dave  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1148</link>
    <description><![CDATA[Hi<br /><br />I have set up a simple database and want to query it using hyperlinks. The code has been written in asp. When i click on a hyperlink, i want a page to appear with corresponding records in the database.<br /><br />The hyperlinks look like this:<br /><br />&lt;a href=&quot;connect.asp?qsname=customer&quot;&gt;Click here to view customer related attributes&lt;/a&gt;&lt;br&gt;<br />&lt;a href=&quot;connect.asp?qsname=product&quot;&gt;Click here to view product related attributes&lt;/a&gt; &lt;br&gt;<br />&lt;a href=&quot;connect.asp?qsname=service&quot;&gt;Click here to view service related attributes&lt;/a&gt; <br /><br />The asp page conatins the following code:<br /><br />&lt;HTML&gt;<br />&lt;BODY&gt;<br />&lt;B&gt;Here are the realted attributes:&lt;/B&gt;&lt;BR&gt;&lt;br&gt;<br />&lt;%<br /> Set MyConn = Server.CreateObject(&quot;ADODB.Connection&quot<img src="/images/emoticons/wink.png" class="smiley" /><br /> MyConn.Open &quot;FILEDSN=c<img src="/images/emoticons/biggrin.png" class="smiley" />snmytable_dsn.dsn&quot;<br /> SQL_query = &quot;SELECT * FROM Friends where Name=qsname&quot;<br /> Set RS = MyConn.Execute(SQL_query)<br /> WHILE NOT RS.EOF<br />%&gt;<br />&lt;%=RS(&quot;Name&quot<img src="/images/emoticons/wink.png" class="smiley" />%&gt;--&lt;%=RS(&quot;Link&quot<img src="/images/emoticons/wink.png" class="smiley" />%&gt;&lt;br&gt;<br />&lt;%<br /> RS.MoveNext<br /> WEND<br /> RS.Close<br /> MyConn.Close<br />%&gt;<br />&lt;/BODY&gt;<br />&lt;/HTML&gt;<br /><br />When i click on a hyperlink i get the follwing error message:<br /><br />Microsoft OLE DB Provider for ODBC Drivers error '80040e10' <br /><br />[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. <br /><br />/webpub/connect.asp, line 8 <br /><br />The database is very simple. It has a table called 'Friends' and this contains 2 fields - 'Name' and 'Link'.<br /><br />Any help would be greatly appreciated<br /><br />Thanks in advance<br /><br />Dave<br />]]></description>
    <pubDate>07/23/04, 205 49 2004 2004:%i:1090590543 09:49:03</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1148</guid>
   </item>
     <item>
    <title>Mrblack  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1149</link>
    <description><![CDATA[Dave, this code is referring to a DSN; has the DSN been configured on your webserver?]]></description>
    <pubDate>07/26/04, 208 50 2004 2004:%i:1090875057 16:50:57</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1149</guid>
   </item>
     <item>
    <title>Dave  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1150</link>
    <description><![CDATA[Hi<br /><br />Thanks for the reply - ive somehow managed to get the code working now<br /><br />Cheers<br /><br />Dave]]></description>
    <pubDate>07/27/04, 209 32 2004 2004:%i:1090924350 06:32:30</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/scripting/asp_problem/#p1150</guid>
   </item>
   </channel>
</rss