Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

XML from CGI to a datagrid??

Posted on 2004-03-22
1
Medium Priority
?
270 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 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

670 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