Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Drag and Drop Impelmetation

Drag and Drop Impelmetation

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminhelpquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Blue_Boy
    wrote on last edited by
    #1

    I have to implement drag and drop function using AJAX+javascritp+MS SQL server (to store results). I have found some articles but what I still need is when I drop one item in shop cart if droped item exists in shop cart then quantity must increase by 1,if not exists then add as new item in shopping cart with quantity 1. If I am not clear in my question please ask me. Thanks in help.


    I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

    C 1 Reply Last reply
    0
    • B Blue_Boy

      I have to implement drag and drop function using AJAX+javascritp+MS SQL server (to store results). I have found some articles but what I still need is when I drop one item in shop cart if droped item exists in shop cart then quantity must increase by 1,if not exists then add as new item in shopping cart with quantity 1. If I am not clear in my question please ask me. Thanks in help.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'm not sure what your question is. If a drop occurs, you add one to the list of items. This just always works, no matter what the starting quantity was, right ?

      Christian Graus Driven to the arms of OSX by Vista.

      B 1 Reply Last reply
      0
      • C Christian Graus

        I'm not sure what your question is. If a drop occurs, you add one to the list of items. This just always works, no matter what the starting quantity was, right ?

        Christian Graus Driven to the arms of OSX by Vista.

        B Offline
        B Offline
        Blue_Boy
        wrote on last edited by
        #3

        I have one DataList with products and in this DataList are columns Image of product,Name of product,price. I click with mouse one product from DataList and I drop in shopping cart and if this product already exists in shopping cart then quantity of this product must increase by 1, but if this product don't exists then I have to add in shooping cart with quantity 1.


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

        C 1 Reply Last reply
        0
        • B Blue_Boy

          I have one DataList with products and in this DataList are columns Image of product,Name of product,price. I click with mouse one product from DataList and I drop in shopping cart and if this product already exists in shopping cart then quantity of this product must increase by 1, but if this product don't exists then I have to add in shooping cart with quantity 1.


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I got that. But, you seem to be saying that you've found articles, have some code to work with, and the adding of a second item is your issue ? What sort of answer are you hoping for here ?

          Christian Graus Driven to the arms of OSX by Vista.

          B 1 Reply Last reply
          0
          • C Christian Graus

            I got that. But, you seem to be saying that you've found articles, have some code to work with, and the adding of a second item is your issue ? What sort of answer are you hoping for here ?

            Christian Graus Driven to the arms of OSX by Vista.

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            Christian Graus wrote:

            and the adding of a second item is your issue ?

            YES :) When I dropp product it displayed as new item,product which i add may exists in shopping cart and in that case product must increase quantity per 1. Sorry for my not detailed question.


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

            C 1 Reply Last reply
            0
            • B Blue_Boy

              Christian Graus wrote:

              and the adding of a second item is your issue ?

              YES :) When I dropp product it displayed as new item,product which i add may exists in shopping cart and in that case product must increase quantity per 1. Sorry for my not detailed question.


              I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              OK, so the issue is entirely related to rendering ? Why not get the list of items in the cart back from AJAX every time and display that, and then the code on the back end can make sure that like content is grouped ?

              Christian Graus Driven to the arms of OSX by Vista.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups