Questions tagged [xmldatasource]

The XmlDataSource control is a data source control that presents XML data to data-bound controls.

The XmlDataSource control can be used by data-bound controls to display both hierarchical and tabular data. The XmlDataSource control is typically used to display hierarchical XML data in read-only scenarios. Because the XmlDataSource control extends the HierarchicalDataSourceControl class, it works with hierarchical data. The XmlDataSource control also implements the IDataSource interface and works with tabular, or list-style, data.

System.Object   
  System.Web.UI.Control  
    System.Web.UI.HierarchicalDataSourceControl  
      System.Web.UI.WebControls.XmlDataSource   
Namespace:  System.Web.UI.WebControls    
Assembly:  System.Web (in System.Web.dll)  

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource(v=vs.110).aspx

97 questions
0
votes
1 answer

How do I use a linq query as a datasource for TreeView or GridView

I am trying to find a way to use the result from my linq query as a datasource for a TreeView and GridView in C#, without having to save the file first in the server. Have tried various options, but all require that the document is saved as a file…
0
votes
1 answer

Setting XMLDataSource.XPath in code is not remembered

In my application, I defined an XMLDataSource in the ASPX: This datasource…
SchmitzIT
  • 9,227
  • 9
  • 65
  • 92
0
votes
2 answers

show page in iframe with different url in browser

I apologize because my English is not good. I Have a webpage by asp.net that contain one treeview ,xmldatasource,one xml file that related to xmldatasource and one iframe. When user click on a treenode a webpage will be shown in iframe. Now I…
noorashegh
0
votes
1 answer

Export xml data to Excel using OpenXML

The file is downloading an xlsx file but when i tried to open the file it is saying file is corrupted. Here is the code i'm trying to use please let me know if any changes has to be done for the following. private void button1_Click(object sender,…
vineet
  • 31
  • 1
  • 8
0
votes
2 answers

In ASP.net, How To Create a Dataset From an API Call That Returns XML but Select Specific Nodes

I am trying to make an API call to google places and google returns an XML document with multiple fields and lines of data. What is the best way to take that data, select specific nodes from it, and put it into a dataset? Here is an example of my…
Schwimms
  • 85
  • 1
  • 1
  • 14
0
votes
2 answers

If xml file does not exist

I am using ASP.NET C# and have written a page using the XmlDataSource tool to read an xml file and display the data in a GridView. Everything is great when the file is there. However, the xml file is generated every hour and if you happen to…
user1188241
  • 123
  • 1
  • 3
  • 9
0
votes
1 answer

Transforming xml using XmlDataSource conrol in asp.net 2.0

Using ASP.NET 2.0 i carried out below steps book.xml Hello, World! data.xsl
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
1 2 3 4 5 6
7