954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How To user clients input in another Page

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

mohammadz
Newbie Poster
4 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Btw im using c# programmin language.

mohammadz
Newbie Poster
4 posts since Nov 2007
Reputation Points: 10
Solved Threads: 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

reach_yousuf
Junior Poster
195 posts since Sep 2007
Reputation Points: 12
Solved Threads: 38
 

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

mohammadz
Newbie Poster
4 posts since Nov 2007
Reputation Points: 10
Solved Threads: 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

reach_yousuf
Junior Poster
195 posts since Sep 2007
Reputation Points: 12
Solved Threads: 38
 

Thanks Alot.....

mohammadz
Newbie Poster
4 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You