943,696 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 732
  • ASP.NET RSS
Oct 5th, 2008
0

How To user clients input in another Page

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mohammadz is offline Offline
4 posts
since Nov 2007
Oct 5th, 2008
0

Re: How To user clients input in another Page

Btw im using c# programmin language.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mohammadz is offline Offline
4 posts
since Nov 2007
Oct 7th, 2008
0

Re: How To user clients input in another Page

Click to Expand / Collapse  Quote originally posted by mohammadz ...
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
Reputation Points: 12
Solved Threads: 38
Junior Poster
reach_yousuf is offline Offline
194 posts
since Sep 2007
Oct 7th, 2008
0

Re: How To user clients input in another Page

I would be very pleased if you would send the code....thanks alot
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mohammadz is offline Offline
4 posts
since Nov 2007
Oct 8th, 2008
0

Re: How To user clients input in another Page

Click to Expand / Collapse  Quote originally posted by mohammadz ...
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.

ASP.NET Syntax (Toggle Plain Text)
  1. Public Sub _doStuff()
  2. Dim ds As New DataSet
  3. Dim r As DataRow
  4.  
  5. r = ds.Tables(0).NewRow
  6.  
  7. With r
  8. r.Item("col1") = textbox1.text
  9. r.Item("col2") = textbox2.text
  10. End With
  11.  
  12. ds.Tables(0).Rows.Add(r)
  13.  
  14. 'To set Cache data
  15. Session("myDataset") = ds
  16.  
  17. End Sub
  18.  

Mohammed Yousuf uddin
Software Developer
Reputation Points: 12
Solved Threads: 38
Junior Poster
reach_yousuf is offline Offline
194 posts
since Sep 2007
Oct 8th, 2008
0

Re: How To user clients input in another Page

Thanks Alot.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mohammadz is offline Offline
4 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: JS don't include window.open popup in browser history
Next Thread in ASP.NET Forum Timeline: Seeking a opinion for the datagrid (web + asp.net))





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC