Thursday 10 April 2014

How to create Asp.net Search,Insert,Update,Delete Databinding With XML file with example.

XML:-

Extensible marker language 
  • XML is designed to transport data.
  • XML is open any where it doesn't required  any hardware and software it is Independence to transport the data
  • it is design to carry(store)data not for design data.
  • HTML is design ti display purpose how 's data-looks.
  • XML tags are not predefined. you must design your owns tages
An XML file show look like:
File name  College .xml

Now I will explain the data Search,Insert,Update,Delete into the xml and retrieve data from the XML data and bind to the Data List elements with a simple example.

Design your aspx page like this
 After you add the file to your application above XML and name as "College.xml" initially as xml root element is required for XML files that's why I added the file Comment Information XML root element in the XML file.
 After you add this namespace in code behind using System.Xml; using System.Data;

After that write the following code in code behind 





Output:

0 comments:

Post a Comment