Results 1 to 2 of 2

Thread: Shopping cart code

  1. #1
    MyersGray is offline Senior Member
    Join Date
    Dec 2009
    Posts
    197
    Rep Power
    3

    Default Shopping cart code

    Hi. I am working on one live project where I use vb.net as front end and SQL as back end. For my one form I want code for shopping. I tried different code but it gives me error. If you have any code then let me know that. Thanks in advanced.

  2. #2
    SullivanWalker is offline Senior Member
    Join Date
    Dec 2009
    Posts
    189
    Rep Power
    3

    Default

    Refer following code for shopping cart:

    Code:
    Dim dvProduct As DataView =CType(AccessDataSource1.Select(DataSourceSelectArguments.Empty), DataView)
    dvProduct.RowFilter = "ProductID = '" & ddlProducts.SelectedValue & "'"
    Dim Product As New Product
    Product.ProductID = dvProduct(0)("ProductID").ToString
    Product.Name = dvProduct(0)("Name").ToString
    Product.ShortDescription = dvProduct(0)("ShortDescription").ToString
    Product.LongDescription = dvProduct(0)("LongDescription").ToString
    Product.UnitPrice = CDec(dvProduct(0)("UnitPrice"))
    Product.ImageFile = dvProduct(0)("ImageFile").ToString
    I have tried the given code but it didn’t solve my problem. Please try to provide some other solution.

Similar Threads

  1. Google acquires visual shopping engine Like.com
    By Gebhard Thomas in forum Latest Hardware News
    Replies: 0
    Last Post: 08-23-2010, 04:44 PM
  2. Google builds its local shopping move
    By mikehuge in forum Latest Hardware News
    Replies: 0
    Last Post: 03-12-2010, 06:07 AM
  3. Protecting Your Identity While Shopping on Internet
    By CarterBaker in forum Networking Jargons
    Replies: 0
    Last Post: 12-30-2009, 07:01 PM
  4. Going Shopping?
    By magreat in forum CPU & Components
    Replies: 0
    Last Post: 11-19-2009, 05:41 PM
  5. VirtueMart - Shopping Cart for Joomla
    By romelda54 in forum Applications
    Replies: 0
    Last Post: 01-19-2009, 10:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48