0

hi guys, im building an e-shop website and i have alot of pages there.

Here's how it works...

The client will surf the site, choose the product he wishes to buy and checks on a textbox that says "add to cart". now when he chooses all he wants, he then have to click on a submit button to be submitted to the cart.

now how can i aquire the products he clicked to the cart's homepage

Im familiar with asp.net,javascript,html,css..


Thanks anyway guys.....

FELONG

2
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by mohammadz
0

Btw im using c# programmin language.

Hi

Use Dataset and store it in the session

If you r familiar with VB code. i can send the code


Mohammed Yousuf uddin
Software Developer

0

I would be very pleased if you would send the code....thanks alot

0

I would be very pleased if you would send the code....thanks alot

Hi again

Sorry about the delay!!!

Here is a piece of code: add to your appropriate event.

Public Sub _doStuff()
        Dim ds As New DataSet
        Dim r As DataRow

        r = ds.Tables(0).NewRow

        With r
            r.Item("col1") = textbox1.text
            r.Item("col2") = textbox2.text
        End With

        ds.Tables(0).Rows.Add(r)

        'To set Cache data
        Session("myDataset") = ds

    End Sub

Mohammed Yousuf uddin
Software Developer

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.