Hello sir,
I host in asphostportal.com
I have access to an XML API in the form of a URL link, so I am trying to display the data on the browser,
to start with, so to make sure the data is returned, but I keep getting the following error:
(name is neither a DataColumn nor a DataRelation for table result.).
It seems there is a problem with the node structure? Below is the ASP.NET page and also the xml file
sub Page_Load
if Not Page.IsPostBack then
dim myproducts=New DataSet
myproducts.ReadXml("http://api.example.c....0/products.xml")
products.DataSource=myproducts
products.DataBind()
end if
end sub
| name |
|---|
Dipankar BiswasPosted May 13, 2015, 4:59 AM
check this links. to help...https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource(v=vs.110).aspx
http://www.aspsnippets.com/Articles/How-to-use-XmlDataSource-Control-in-ASPNet-Example.aspx
http://www.codeproject.com/Articles/4902/Reading-an-XML-file-using-NET