Binding data from XML file into an ASP.NET page

You can bind data from an xml file to an asp.net page. ASP.Net has classes and methods that make this possible without much effort on your part. To work with data binding you have to import the namespace System.Data. This is done by using the @ import directive at the top of the page. It would be something like,

_______________________________________________


_______________________________________________

<%@ Import Namespace="System.Data" %>

The next step is to create a new Dataset and use the ReadXml method to read the xml file. This is usually done in the Page_Load event. This is done when the page is loaded for the first time and hence it is better to check that condition with Page.IsPostBack.

To bind data to any control first create that control with an id. Now for that id set the property of DataSource to that of the DataSet that you have created. Similarly you can set the DataValueField and the DataTextField and then use the DataBind() method of that control to bind the data to that control. There are many sample code for this routine in the internet.

Manipulate XML File Data Using C# (Developer.com)
Nearly 95 percent of .NET applications use XML for various tasks. A main usage for Web developers is combining XML with HTML to display information on Web pages, which relieves them from having to spend a long time editing the content on their Web pages.

Windows Identity Foundation, nuovo componente per la gestione degli accessi (Programmazione.it)
WIF include due elementi fondamentali : Active Directory Federation Access 2.0 parte integrante del sistema gestione identità e accessi — Identity and Access Management Solution — di Active Directory, che include anche Active Directory Federation Access 2.0 (conosciuto in passato come server "Geneva") e Windows CardSpace 2.0 (conosciuto in passato come Windows CardSpace "Geneva").

Intertech to Deliver Free RESTful Web Services in Java Oxygen Blast Presentation (PRWeb)
Intertech (http://www.Intertech.com) will deliver two free Oxygen Blast presentations on RESTful Web Services in Java. The first presentation will be at Intertech's headquarters in St. Paul, MN. The second will be delivered via a live webinar throughout North America. (PRWeb Feb 17, 2010) Read the full story at http://www.prweb.com/releases/web-services ...




FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover





 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Cisco CCNA Certification Video Tutorial Guide - Learn How to Pass the Cisco CCNA 640-802 Exam... Guaranteed!

Train Signal Computer Training