J
jeremy hillin
I am trying to read the MSDN RSS.xml file and populate a
datagrid in an aspx page. I ran this same code in a
WinForm app and it works. I get this error on my aspx
page. I get the error on the ds.ReadXML( reader );
"The underlying connection was closed: Unable to connect
to the remote server"
XmlTextReader reader = new XmlTextReader
( "http://msdn.microsoft.com/rss.xml" );
DataSet ds = new DataSet();
ds.ReadXml( reader );
this.DataGrid1.DataSource = ds.Tables[2];
this.DataGrid1.DataBind();
datagrid in an aspx page. I ran this same code in a
WinForm app and it works. I get this error on my aspx
page. I get the error on the ds.ReadXML( reader );
"The underlying connection was closed: Unable to connect
to the remote server"
XmlTextReader reader = new XmlTextReader
( "http://msdn.microsoft.com/rss.xml" );
DataSet ds = new DataSet();
ds.ReadXml( reader );
this.DataGrid1.DataSource = ds.Tables[2];
this.DataGrid1.DataBind();