Discussion Locked

asp question.

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hello,
i am doing a designing a website and an online transaction for a granite company & i am using asp, java script, html,oracle 8. i have a doubt in asp which is threatening the completion of my project.

the problem goes like this. the userhas an option of selecting 36 different granite slabs from the website and placing the order for the company. the thumbnail pics of the 36 stones is displayed on a page. the user has to just tick the checkboxes of the the stones he wants to order and then after doing it he gets the details of his order in an order form and then he has to enter some details like quantity and size.

the problem starts now. say the customer has selected 3 stones for eg.

slno stonename size price quantity total

1 hassangreen 10mm 100 10 1000
2
3

the order form looks something like the above. the data has to be sent to the oracle table. now how to insert all the 3 rows of data into the table. the submit button used to send the dataworks for only one row and the fields are refreshed.

how to send the 3 rows (for eg.) of data using activer server pages (ASP) at one instance or at the click of the submit button once.

thank you.

5 replies

by cedric king

When you click on a Submit button with no Action in the Form tag, the page will reload itself. When it "reloads" itself, it executes codes from the beginning. That is to say if you have some ASP codes prior to , they will be executed first. That's what I used in situation like this. The "Quantity" in my page was a Input Box. I checked that if it is not 0 (default), I will write it to the database. You will need to iterate all the Request.Form items to do that. I believe that for you to display the data in the order form, those details are already stored somewhere. During the iteration, just get those details back and together with the quantity, write it back to the database.
Hope you understand what I trying to say and it answer your question.

by kashifidrees

I completely complies tot he answer of Mr. Cedric Choo.
I think that is the most simplest of the answers.

Now if u solve this problem, Solve mine that worth 3000123 points. only 4 hours left.

This discussion is closed to new replies.