DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   How To user clients input in another Page (http://www.daniweb.com/forums/thread149314.html)

mohammadz Oct 5th, 2008 12:06 pm
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 Oct 5th, 2008 12:25 pm
Re: How To user clients input in another Page
 
Btw im using c# programmin language.

reach_yousuf Oct 7th, 2008 10:53 am
Re: How To user clients input in another Page
 
Quote:

Originally Posted by mohammadz (Post 705739)
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

mohammadz Oct 7th, 2008 2:02 pm
Re: How To user clients input in another Page
 
I would be very pleased if you would send the code....thanks alot

reach_yousuf Oct 8th, 2008 7:53 am
Re: How To user clients input in another Page
 
Quote:

Originally Posted by mohammadz (Post 707323)
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

mohammadz Oct 8th, 2008 8:54 am
Re: How To user clients input in another Page
 
Thanks Alot.....


All times are GMT -4. The time now is 11:13 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC