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
1
vote
1 answer

Data storage hazards and problems when using XmlDataSource as persistancy layer in an ASP.NET web application

This is a question about how to solve a possible, real, problem occurring when deciding to use xml files to store data in a web application. The scenario Consider you want to build a web application in order to run a personal blog. Well, sure, this…
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
2 answers

Asp.Net GridView order data bound columns before declarative ones

I have a gridview that is databound to a XmlDataSource. I also want to add a section with a buttonfield at the end of the gridview. When I add a columns section it prepends it (before xml columns). How could I order
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
1
vote
3 answers

How do I pass a xml attribute to xslt parameter?

I got everything working (thank empo) except the ctrlname column. I don't know the syntax well enough. What I am trying to do is use the xslt to sort the xml in the gridview by the column name. Everything is working but the ctrlname column. How do I…
dotnetN00b
  • 5,021
  • 13
  • 62
  • 95
1
vote
1 answer

How to create a jasper table and textfields inside the list component with XML datasource?

I am trying to generate report using Jasper iReport Designer 5.6.0, where there is a list with table and some textfields. The generated report should look like this: To do this, I'm using the following XML file as datasource:
user11829790
1
vote
0 answers

SSRS data services Sharepoint 2013 xml

in SSRS 2016 I write the following XML data Source: https:///_vti_bin/usergroup.asmx and afterwards the following DataSet: http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupCollectionFromUser …
1
vote
1 answer

How to print nested xml elements?

Sample xml: Great Lakes Food Market Howard Snyder Marketing Manager (503) 555-7555
Kiran
  • 39
  • 5
1
vote
0 answers

reload XmlDataSource DataFile in C# for Gridview

XmlDataSource1.DataFile = @"C:\test.xml"; GridView1.DataBind(); I am changing the file data (test.xml) multiple times and reloading it into xmldatasource using above code but gridview just displays data of first(unchanged) test.xml file .
Karan Bhangal
  • 33
  • 1
  • 3
1
vote
1 answer

XmlDataSource with XPath - can I get the raw data in code?

If an ASP.NET form has an XmlDataSource on it, and in code I am setting the XPath filter, e.g: xmlExample.XPath = String.Format("data/reasons/reason[@text='{0}']/details/",someValue); ... can I then get the result of that XPath filtering in…
codeulike
  • 22,514
  • 29
  • 120
  • 167
1
vote
2 answers

JasperReports: JRDataSource.subDataSource shows undefined

I am following this tutorial to create my reports using iReport. I have already created a couple of reports using the guidelines mentioned. But in a new report, when I set the DataSource of the ListComponent Jasper reports the following error to…
Vivek Todi
  • 361
  • 1
  • 9
  • 24
1
vote
1 answer

ASP.NET repeater only renders the first item in my XML data source

I have an XML Data Source: In my page I have wired this up to an…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
1
vote
0 answers

ASP.NET 2.0 XmlDataSource's XPath doesn't support namespaces

I'm trying to display the content of a sitemap.xml file using an asp:Repeater and an asp:XmlDataSource (see standard defined into http://www.sitemaps.org/protocol.php). The problem is that the binder <%#XPath("myNodeName")%> can't work when the…
NinjaCross
  • 784
  • 2
  • 9
  • 20
1
vote
1 answer

Determining if the customer has orders

There is an xml dump of the Northwind database here. Document structure is something like: . . . . . …
deostroll
  • 11,661
  • 21
  • 90
  • 161
1
vote
1 answer

finding a children of each node of an XmlDataSource asp control

i'm trying to view this rss feed :
Hady Elsahar
  • 2,121
  • 4
  • 29
  • 47
1
vote
1 answer

Filtering the XML Node binded with dropdownlist

I have two DropDownList: 1) CollegeDDL which contains Four static names of the colleges. : Homeopathic Medical College,Physiotherapy College,Institute of Ayurveda,Institute of Business Administration 2) CourseDDL which is bind to CourseDetail.XML. …
sachtech
  • 11
  • 1
0
votes
2 answers

ASP.NET: UpdatePanel only updates once

I have an UpdatePanel which is triggered by a Menu control (MenuItemClick). In the UpdatePanel, there is a Repeater with XML data source. Upon a menu item click, the XPath of Repeater's XML data source would be updated and the repeater would display…
William Niu
  • 15,798
  • 7
  • 53
  • 93