Solved

XML from CGI to a datagrid??

Posted on 2004-03-22
1
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

756 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