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
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Ajay SainiPosted Oct 20, 2015, 6:52 AM
Rajveer singhPosted Oct 19, 2015, 4:12 AM
Ajay SainiPosted Oct 19, 2015, 3:40 AM