Hi all,
I am bind gridview from xml url but not read name from xml file ;;;;;;;;
My code is cs.
WebRequest rssReq =
WebRequest.Create(" http://newsonair.nic.in/top_rss.asp");
//Create a Proxy
WebProxy px = new WebProxy("http://newsonair.nic.in/top_rss.asp", true);
//Assign the proxy to the WebRequest
rssReq.Proxy = px;
// Set the timeout in Seconds for the WebRequest
rssReq.Timeout = 50000;
try
{
//Get the WebResponse
WebResponse rep = rssReq.GetResponse();
//Read the Response in a XMLTextReader
XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream());
DataSet ds = new DataSet();
ds.ReadXml(xtr);
Top_Stories.DataSource = ds.Tables[2];
Top_Stories.DataBind();
}
catch (Exception ex)
{
throw ex;
}
Error Is here
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'title'.
plaese how to shortout this
.Aspx code


Ajay Saini125 reputationPosted Oct 18, 2015, 11:40 PM EDT
Rajveer singhRank #1,510 · 1.1K reputationPosted Oct 19, 2015, 12:12 AM EDT
Ajay Saini125 reputationPosted Oct 20, 2015, 2:52 AM EDT