| | |
Displaying an XML table
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Solved Threads: 0
Hello, I'm rather new to C# though I have extensive experience with C++. I need help displaying a couple XML documents that I've created on an ASP page. My intent is to display a table showing the contents of the XML document in table form initially. After that I want to be able to run a simple search on a field that returns a matches back also displayed in a table. I have roughly an idea which direction I want to go but I'm just not quite sure where to get started. I do believe I have to populate a grid or table but I'm not sure which one to use and how that would be displayed in my function.
Use XLINQ it'd help you a lot..
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Most people don't have support for that yet 
If you're using ASP.NET, you'll likely want a GridView for your table, and an XmlDataSource for getting your data. If your data format doesn't line up well with how the XmlDataSource pulls it out by default, you can either create an XSL to convert between the XML and how it gets displayed, or you can write some XPath queries to build a data set programmatically and then bind to that. If by chance your server does support C# 3.0, then you should consider XLINQ.

If you're using ASP.NET, you'll likely want a GridView for your table, and an XmlDataSource for getting your data. If your data format doesn't line up well with how the XmlDataSource pulls it out by default, you can either create an XSL to convert between the XML and how it gets displayed, or you can write some XPath queries to build a data set programmatically and then bind to that. If by chance your server does support C# 3.0, then you should consider XLINQ.
![]() |
Similar Threads
- PHP and XML/XSL (PHP)
- Navigation (Paging) in HTML table in VB.NET. (VB.NET)
- Reading and Displaying a comma delimited text file to a table. (ASP)
- how to create a sql table through coding in vb.net (IT Professionals' Lounge)
- Nesting A Table (C#)
- Displaying XML on HTML page, Server Stats to be complete (RSS, Web Services and SOAP)
- Displaying a League Table (C++)
Other Threads in the C# Forum
- Previous Thread: call cmd processes and keeping them cmd window
- Next Thread: ArrayList from something other than primitives
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation visualstudio webbrowser windows winforms wpf xml






