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. Concurrent Updates using asp.net and mysql...

Concurrent Updates using asp.net and mysql...

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netmysqlhelptutorial
3 Posts 3 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.
  • S Offline
    S Offline
    spalanivel
    wrote on last edited by
    #1

    Hi, I am developing small web application(ASP.NET and MySQL)with CURD Operations which has one table and has 30 columns. my ques: Suppose If more than one person tries to modifies the same row(record) then it should throw message as "Someone already editing the record". I find out optimistic and pessimistic locking for the above problem. How to achieve this one and which method to use any sample application which will be very useful Reg, Subbu

    P V 2 Replies Last reply
    0
    • S spalanivel

      Hi, I am developing small web application(ASP.NET and MySQL)with CURD Operations which has one table and has 30 columns. my ques: Suppose If more than one person tries to modifies the same row(record) then it should throw message as "Someone already editing the record". I find out optimistic and pessimistic locking for the above problem. How to achieve this one and which method to use any sample application which will be very useful Reg, Subbu

      P Offline
      P Offline
      Pranay Rana
      wrote on last edited by
      #2

      use ado.net transaction for that so that allow only one person at time to update record

      1 Reply Last reply
      0
      • S spalanivel

        Hi, I am developing small web application(ASP.NET and MySQL)with CURD Operations which has one table and has 30 columns. my ques: Suppose If more than one person tries to modifies the same row(record) then it should throw message as "Someone already editing the record". I find out optimistic and pessimistic locking for the above problem. How to achieve this one and which method to use any sample application which will be very useful Reg, Subbu

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        i had that Problem once in my early days. but look at how i wrote the SP to overcome that. I check if the Value has change since i have retrieved the data, if it has change i dont Update. look at this Coding an N-Tier Application in C# Without Any Wizard: Part II[^]

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        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