Solved

Display XML data using ASP (Datagrid or GridView)

Posted on 2008-06-16
6
796 Views
Last Modified: 2008-06-17
Hi,

I need to display contents of an XML file using ASP, either with a DataGrid or GridView object - to be honest I am unsure of the differences between these.

The XML data is exported out of a legacy database we have, and the actual data is held between tags, rather than an attribute of the tag (i.e. <tag> Data Here </tag>).

Please could someone explain how to bind the XML with either a DataGrid or GridView. My knowledge of XML is ok, but knowledge of ASP is very limited.

Thanks in advance...
0
Comment
Question by:gcz
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:dosth
ID: 21794876
0
 
LVL 1

Author Comment

by:gcz
ID: 21800818
Sorry, this link didn't really help me. Could you elaborate a little?
0
 
LVL 15

Accepted Solution

by:
dosth earned 500 total points
ID: 21800954
in asp there is no grid view or datagrid, i hope you mean asp.net right?
http://aspnet.4guysfromrolla.com/articles/052902-1.aspx
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 1

Author Comment

by:gcz
ID: 21805360
Thanks for this. It turns out that the problem was that the XML data being created by our database was not being formed correctly.

The article on the second link has helped me create what I needed. Thanks.
0
 
LVL 1

Author Comment

by:gcz
ID: 21805371
Also, sorry I did mean ASP.NET - my bad!
0
 
LVL 15

Expert Comment

by:dosth
ID: 21810364
thanks for the point
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now