Forums
This topic is locked
asp Go to detailed page
Posted 25 Sep 2007 14:23:30
1
has voted
25 Sep 2007 14:23:30 Rob Redford posted:
Hi allI have created a list of FAQ's and so I have a faq.asp page with the list of FAQ's and then a faqanswer.asp page. When you click on a FAQ question link it takes you to the answer page which is great. So I thought the 'Go to Detailed page' worked. Then when I clicked on the link of other questions it took me to the same answer page. Therefore you click on any link and it still takes you to the same answer.
So the Question could be, 'What time do you open' the answer may be '9pm'
But if I click ona question that might be, 'What products do you stock' it will still take me to the answer of '9pm'
I am not sure where I am going wrong but it is like its taking me to the same ID number every time. (Hope this makes sense).
**********************************************************************************
<span class="headingnav"><li><A HREF="faqanswer.asp?<%= Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!=""?"&":"" + "FaqID=" + rsFAQ.Fields.Item("FaqID".Value %>"><%=(rsFAQ.Fields.Item("Question".Value)%></A></li>
</span>
*************************************************************************************
Any ideas ?
Many thanks
Rob
Replies
Replied 05 Oct 2007 18:41:38
05 Oct 2007 18:41:38 Lee Diggins replied:
Hi Rob
This seems very strange behaviour.
Can you confirm that if you view the returned data in a table from the database, that FaqID would be unique for each Question. First of all it sounded like the loop wasn't working correctly, but then you have different question displayed for each record.
Try it without the MM_KeppNone:
<pre id=code><font face=courier size=2 id=code>"><li><A HREF="faqanswer.asp?FaqID=<%= rsFAQ.Fields.Item("FaqID".Value %>"><%=(rsFAQ.Fields.Item("Question".Value)%></A></li></font id=code></pre id=code>
Post back with some more details/code if possible.
Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
This seems very strange behaviour.
Can you confirm that if you view the returned data in a table from the database, that FaqID would be unique for each Question. First of all it sounded like the loop wasn't working correctly, but then you have different question displayed for each record.
Try it without the MM_KeppNone:
<pre id=code><font face=courier size=2 id=code>"><li><A HREF="faqanswer.asp?FaqID=<%= rsFAQ.Fields.Item("FaqID".Value %>"><%=(rsFAQ.Fields.Item("Question".Value)%></A></li></font id=code></pre id=code>
Post back with some more details/code if possible.
Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>