Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retaining values from a Dynamically generated List (Table)

Status
Not open for further replies.

Seattle123

IS-IT--Management
Nov 20, 2004
1
US
I am creating a web Application that pulls items for sale from a database and presents a list to the user. The Database connection is made via a recordset (in VBScript)
The user then makes a number of selections by choosing a quantity from a pull down box beside each desired item. Currently the list is in the form of a dynamically generated table. A pull down menu next to each item allows the user to select the item qty desired (if any).

What I am trying to achieve is to have the selected items stored and displayed on the next page so the user can edit or accept the list. Also the total price of the items must be calculated, displayed and retained as a subtotal as the user moves from page to page.

The problem is that the list of items is stored in a table which is created when the page is called. As a result, when the page is posted the request object of the called ASP page cannot seem to use request.form(“elementName”) syntax to retrieve the selections
How can this be implemented using ASP (considering the initial list is dynamically generated)
 
Hi
If I am getting the problem correctly, then you need to display the list of the items pulling the option values from backend. Now if you want to display what the user chose, submit the values from page 1 and then use var = request.querystring(DropdownName) to save those values in a variable on page2. Now check if this works by response.write(var) command and page2 to check if anything is getting stored. All you have to do to display the value is compare the value of the var with the appropriate value of the backend in a do while loop. Hope this makes sense.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top