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. General Programming
  3. C#
  4. Store persistent data

Store persistent data

Scheduled Pinned Locked Moved C#
csharpasp-nethelp
11 Posts 6 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
    sunsher
    wrote on last edited by
    #1

    Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

    M L Z A 5 Replies Last reply
    0
    • S sunsher

      Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      And you call your self a "senior" developer :sigh: Decide where you want to store the data (database or file system) For database read up on creating a Web API project that uses a data access layer to connect t a database. For file system read up on system.IO No matter how you store the data you are going to have to research on what you intend to do.

      Never underestimate the power of human stupidity RAH

      OriginalGriffO 1 Reply Last reply
      0
      • M Mycroft Holmes

        And you call your self a "senior" developer :sigh: Decide where you want to store the data (database or file system) For database read up on creating a Web API project that uses a data access layer to connect t a database. For file system read up on system.IO No matter how you store the data you are going to have to research on what you intend to do.

        Never underestimate the power of human stupidity RAH

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        Mycroft Holmes wrote:

        And you call your self a "senior" developer

        Presumably, a "Very Senior Developer" is the one who can use Google...

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • S sunsher

          Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          sunsher wrote:

          help me

          How can we help you? Do you need help with a simple google search? Do you need help finding the search capabilities of CodeProject? Maybe need help finding the sticky post describing how to ask a question?

          1 Reply Last reply
          0
          • S sunsher

            Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

            Z Offline
            Z Offline
            ZurdoDev
            wrote on last edited by
            #5

            If you want help you need to be much more specific. What do you mean by persistent data? In ASP.Net you can store data in the application cache which persists as long as the process is running. You can store in a cookie which persists until it expires or is deleted. You can persist in the database or a file for however long you want.

            There are only 10 types of people in the world, those who understand binary and those who don't.

            1 Reply Last reply
            0
            • S sunsher

              Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Yes.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

              1 Reply Last reply
              0
              • S sunsher

                Hi, I am totally new to ASP.NET. Please help me to create a project to store persistent data. Thanks

                A Offline
                A Offline
                Abhinav S
                wrote on last edited by
                #7

                To store data, you need to use a database of some sort. ASP.Net can connect to many databases.

                Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                S 1 Reply Last reply
                0
                • A Abhinav S

                  To store data, you need to use a database of some sort. ASP.Net can connect to many databases.

                  Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                  S Offline
                  S Offline
                  sunsher
                  wrote on last edited by
                  #8

                  Would XML file work that way? And is it possible to use CRUD with XML?

                  M 1 Reply Last reply
                  0
                  • S sunsher

                    Would XML file work that way? And is it possible to use CRUD with XML?

                    M Offline
                    M Offline
                    Mycroft Holmes
                    wrote on last edited by
                    #9

                    Yes and Yes Use XML (file based storage) only if you have very limited data in a simple data structure AND the application is single user only. File based data (XML) is notoriously difficult to manage when doing CRUD, you need to read the entire file, select the record you want to modify, change the record, reconstruct the file, write the entire file to the disk. No multiuser, there is no concept of record locking.

                    Never underestimate the power of human stupidity RAH

                    S 1 Reply Last reply
                    0
                    • M Mycroft Holmes

                      Yes and Yes Use XML (file based storage) only if you have very limited data in a simple data structure AND the application is single user only. File based data (XML) is notoriously difficult to manage when doing CRUD, you need to read the entire file, select the record you want to modify, change the record, reconstruct the file, write the entire file to the disk. No multiuser, there is no concept of record locking.

                      Never underestimate the power of human stupidity RAH

                      S Offline
                      S Offline
                      sunsher
                      wrote on last edited by
                      #10

                      Then what's the best method? Use XML or SQL database? Because I have to use CRUD.

                      M 1 Reply Last reply
                      0
                      • S sunsher

                        Then what's the best method? Use XML or SQL database? Because I have to use CRUD.

                        M Offline
                        M Offline
                        Mycroft Holmes
                        wrote on last edited by
                        #11

                        Use SQL Server or LocalDB or SQL Lite, there are a number of databases available, I would use SQL Server express if it need to be a server based system.

                        Never underestimate the power of human stupidity RAH

                        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