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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with shared datatable URGENT.,,

Problem with shared datatable URGENT.,,

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netquestion
7 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.
  • P Offline
    P Offline
    pinna_hari
    wrote on last edited by
    #1

    hello, I am working on Asp.net 2.0 In my application i used shared datatable. when i click on submit button the values in the gridview will store in datatable. my problem when two different users working with this application same time, two users data is storing in to the same datatable, and it is giving duplication values. what sholud may be the problem, when we are using shared datatable,wont it create seperate (instance)datatable for different users? Please help me Its urgent... awaiting for your reply.. Thanks in advacne

    Pinna

    P N 2 Replies Last reply
    0
    • P pinna_hari

      hello, I am working on Asp.net 2.0 In my application i used shared datatable. when i click on submit button the values in the gridview will store in datatable. my problem when two different users working with this application same time, two users data is storing in to the same datatable, and it is giving duplication values. what sholud may be the problem, when we are using shared datatable,wont it create seperate (instance)datatable for different users? Please help me Its urgent... awaiting for your reply.. Thanks in advacne

      Pinna

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      haripinna wrote:

      Please help me Its urgent...

      That's rude.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

      P 1 Reply Last reply
      0
      • P Paul Conrad

        haripinna wrote:

        Please help me Its urgent...

        That's rude.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

        P Offline
        P Offline
        pinna_hari
        wrote on last edited by
        #3

        i can't understand what's rude...

        Pinna

        P 1 Reply Last reply
        0
        • P pinna_hari

          i can't understand what's rude...

          Pinna

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          haripinna wrote:

          can't understand what's rude...

          Expecting people to answer right away about your problem. Now, that aside, it sounds like your database needs to be normalized if you are getting two users putting in duplicate data at the same time.

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

          P 1 Reply Last reply
          0
          • P Paul Conrad

            haripinna wrote:

            can't understand what's rude...

            Expecting people to answer right away about your problem. Now, that aside, it sounds like your database needs to be normalized if you are getting two users putting in duplicate data at the same time.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            P Offline
            P Offline
            pinna_hari
            wrote on last edited by
            #5

            Thanks for your early response. actually i am not saving gridview data into the database, i am just saving it into the datatable(.Net) . at this situation it is not related with database.

            Pinna

            1 Reply Last reply
            0
            • P pinna_hari

              hello, I am working on Asp.net 2.0 In my application i used shared datatable. when i click on submit button the values in the gridview will store in datatable. my problem when two different users working with this application same time, two users data is storing in to the same datatable, and it is giving duplication values. what sholud may be the problem, when we are using shared datatable,wont it create seperate (instance)datatable for different users? Please help me Its urgent... awaiting for your reply.. Thanks in advacne

              Pinna

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              haripinna wrote:

              when we are using shared datatable,wont it create seperate (instance)datatable for different users?

              Have you spend sometime to read the documentation and learn how shared variables works? Shared(static in C#) will be available in the memory until the application domain unloads. Which means that multiple users will get the same copy. If you need to keep data which is unique for each user, consider sessions.

              haripinna wrote:

              Please help me Its urgent...

              WOW! That won't make any difference in the speed of getting replies. Consider reading this[^] guideline.

              Navaneeth How to use google | Ask smart questions

              P 1 Reply Last reply
              0
              • N N a v a n e e t h

                haripinna wrote:

                when we are using shared datatable,wont it create seperate (instance)datatable for different users?

                Have you spend sometime to read the documentation and learn how shared variables works? Shared(static in C#) will be available in the memory until the application domain unloads. Which means that multiple users will get the same copy. If you need to keep data which is unique for each user, consider sessions.

                haripinna wrote:

                Please help me Its urgent...

                WOW! That won't make any difference in the speed of getting replies. Consider reading this[^] guideline.

                Navaneeth How to use google | Ask smart questions

                P Offline
                P Offline
                pinna_hari
                wrote on last edited by
                #7

                Dear navneeth Thankyou very, i got very needful information.

                Pinna

                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