Forums

This topic is locked

PASSING VALUES ....

Posted 08 Jan 2003 16:17:05
1
has voted
08 Jan 2003 16:17:05 Andy G posted:
Hi,

I am dealing with some problems about passing the correct values from a drop down list to a detail page.
My first page is a "selection page" , there, I use a drop down list with data from a acces datasbase.(a prodID list of products). Since the colomn of my prod ID list contains 6 several types of prod.ID's, I filter them out - so I have the items I need for that particul. combo box.
So far no problem.
But the problem is that I don't how to get to a detail page.
There I have several cells with prodname,prod description, ProdImage,ProfPDF.
What can I do to let my combox-page pass the info I need for the detailpage?
I use the GET method for my list, also made a link in the prop. window of my detail page.
Can I use the go to detail page?
Wich serverbehavior etc. should I use to let it work?

thx !

Replies

Replied 08 Jan 2003 20:34:00
08 Jan 2003 20:34:00 asp asp replied:
OK! well in the 1st page you want to set a session, the = the name of your Field/

<!-- My field name-->
<% Session("svUsername" = Request.Form("FieldName" %>

then on the other page! retrive the name by requestion that session like this,

<%= Session("svUsername" %>


this will grab the info from the field and put it on your page!!

Replied 08 Jan 2003 22:07:54
08 Jan 2003 22:07:54 Andy G replied:
Quote
OK! well in the 1st page you want to set a session, the = the name of your Field/
<!-- My field name-->
<% Session("svUsername" = Request.Form("FieldName" %>

then on the other page! retrive the name by requestion that session like this,

<%= Session("svUsername" %>


this will grab the info from the field and put it on your page!!
--> Ok, thank's for your reply !
Could you please explain this a little?
So, I suppose on the page with the combo-box, I open the recordset in the databindingspanel, and I insert the first script in the advanced sql section like this :
<!-- My field name-->
<% Session("svUsername" = Request.Form("FieldName" %>
Second : on my detailpage, on the recordset - advanced setting I paste in the second script.??

Thank's again for your help !
Replied 08 Jan 2003 22:25:33
08 Jan 2003 22:25:33 asp asp replied:
actually in the 1st page put it right under the top line of your page like bellow,

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Session("svUsername" = Request.Form("FieldName" %>

in the second page you need to call this session put <%= Session("svUsername" %> after </body> tag. thats is!!

Reply to this topic