Wednesday, December 03, 2003
ASP.NET.4GuysFromRolla.com: Quickly Editing an XML File
Today virtually all Web sites use a traditional relational database for persistent storage, retrieval and modification of data. Databases have numerous advantages, such as having a rich standardized querying language (SQL), providing transaction support, and good performance. Anytime you are building a professional-grade Web site, or are dealing with large amounts of data, it behooves you to use a database to store and retrieve the data. Sometimes, though, for smaller Web sites or for small amounts of data, a database seems like a bit of overkill. Too, for Web site hosting companies that charge extra to have database support, it might not make sense to pay this extra fee if you only need to store a tiny bit of persistent information. This article, by Zubair Ahmed, demonstrates how a simple XML file can be used to store, retrieve, modify and even delete records with the help of the DataGrid Web control. Below is a sneak-peak of the user interface we'll be building for editing this XML file. Note that by the end of this article you'll be able to build a means to insert new records in an XML file, as well as update and delete existing records. Additionally, feel free to check out the live demo.
[Read More] | [Visit ASPNET.4GuysFromRolla.com]
Today virtually all Web sites use a traditional relational database for persistent storage, retrieval and modification of data. Databases have numerous advantages, such as having a rich standardized querying language (SQL), providing transaction support, and good performance. Anytime you are building a professional-grade Web site, or are dealing with large amounts of data, it behooves you to use a database to store and retrieve the data. Sometimes, though, for smaller Web sites or for small amounts of data, a database seems like a bit of overkill. Too, for Web site hosting companies that charge extra to have database support, it might not make sense to pay this extra fee if you only need to store a tiny bit of persistent information. This article, by Zubair Ahmed, demonstrates how a simple XML file can be used to store, retrieve, modify and even delete records with the help of the DataGrid Web control. Below is a sneak-peak of the user interface we'll be building for editing this XML file. Note that by the end of this article you'll be able to build a means to insert new records in an XML file, as well as update and delete existing records. Additionally, feel free to check out the live demo.

[Read More] | [Visit ASPNET.4GuysFromRolla.com]
Subscribe to Posts [Atom]
