Solved

XML from CGI to a datagrid??

Posted on 2004-03-22
1
265 Views
Last Modified: 2010-04-15
I have a CGI script that outputs well formed XML.I need to read this from a .NET server and bind the output to a datagrid. Since its is not a ".XML" file (it is .CGI) I am having trouble with this. Any ideas?

Thanks,

Mike
0
Comment
Question by:Mike_Landeck
1 Comment
 
LVL 12

Accepted Solution

by:
dfiala13 earned 500 total points
ID: 10653105

Have you tried this? Where strURL is the URL you are calling the CGI script.

XmlReader xr = new XmlTextReader( strURL);
DataSet ds = new DataSet();
ds.ReadXml(xr);

dg.DataSource = ds.Tables[0];

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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