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
2 answers

ASP.Net menu databinding encoding problem

I have a menu where I bind data through: XmlDataSource xmlData = new XmlDataSource(); xmlData.DataFile = String.Format(@"{0}{1}\Navigation.xml", getXmlPath(), getLanguage()); xmlData.XPath = @"/Items/Item"; …
WtFudgE
  • 5,080
  • 7
  • 47
  • 59
0
votes
0 answers

Can a vb file with assigned property values be cached WITH the values?

I have a web application that (a.) collects information from a user, (b.) stores this information as properties in a vb file in the \APP_CODE directory, (c.) loads a form with a gridview, and (d.) populates the gridview with data from an…
trevbet
  • 145
  • 1
  • 12
0
votes
1 answer

Binding Datagrid to XMLDatasource

I'm using an XMLDatasource to bind to a data grid. I'm also using a parameter in my xsl for sorting. I have everything working but it seems I have to bind twice to my data for it to work when I sort. Can anyone tell me why? Here is my…
0
votes
0 answers

XmlReader to XmlDataSource

What is the most efficient way to create an XmlDataSource from an XmlReader? I'm trying to read an XML column from my MS-SQL database using the reader to prevent costy serialization of the data. Here's my current code which doesn't seem to be really…
André R.
  • 427
  • 7
  • 17
0
votes
1 answer

How do I serialize modified in-memory xml from an XmlDataSource without calling XmlDataSource.Save()?

// XmlDataSource Setup XmlDataSource xds = new XmlDataSource(); xds.Data = @" ATTR1 ATTR2 "; xds.XPath = @"attributes/attribute"; xds.DataBind(); The…
vitaminjeff
  • 588
  • 6
  • 9
0
votes
0 answers

How to add an operator to XMLDataSource in C#?

I created an Rss feed reader user control for my Sitefinity web app by using XMLDataSource. In the code below, ItemsToTake is a public property for my user control widget designer. If the user enters 10, then 9 feeds will be displayed on the…
hnnnng
  • 481
  • 4
  • 21
0
votes
1 answer

sqldatasource or xmldatasource or something else?

I am currently in the process of upgrading our schools website. I am trying to figure out which datasource will best fit our needs. Pretty much all content will be data driven as it needs to be editable by management. Data currently resides on…
UltimateVenom
  • 45
  • 1
  • 7
0
votes
1 answer

Hierarchical DataTemplate with a XML DataSource issue with bindings

With the following XML below I would like to use a hierarchicaldatatemplate with a WPF treeview. Depending on value in type I intend to use a different images with the name next to it and then to get the name from the value from the id tag.
StefanE
  • 7,578
  • 10
  • 48
  • 75
0
votes
1 answer

asp:HyperLink build NavigateUrl within Repeater using XPATH data

I am using a repeater for some products I am listing. I'm trying to build an asp:HyperLink NavigateUrl using both hardcoded text as well as XPATH data. NavigateUrl='mypage.aspx?ID=<%#XPath("THEID")%>&name=<%#XPath("THENAME")%>' Obviously this isn't…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
0
votes
1 answer

Issue in generating Dynamic BIRT reports using XML data source

We are using BIRT 3.7 api to generate dynamic PDF. We are setting up XML data source using below logic. In below snippet we provides XML string as data source. Strangely, since last week dynamic data is not getting populated from xml. It is not…
Anupam Gupta
  • 1,591
  • 8
  • 36
  • 60
0
votes
0 answers

SSRS Report Parameter Value is not getting

I have one SSRS report which is using XML Data source by using web service. In my web service i am using one parameter to query the records. While i publish and run the service directly from iis, its getting the parameter value and returns the…
MAC
  • 6,277
  • 19
  • 66
  • 111
0
votes
1 answer

JasperReports: Ordering records from XMLDataSource

I recently converted a JasperReport to use the XMLDataSource instead of getting the data from the DB. This was done for performance reasons. One of the requests was to group certain records together. I thought I had it working, but this was because…
JBotha
  • 42
  • 1
  • 3
  • 9
0
votes
1 answer

Getting xml data and to store in the form of array list

Iam getting the data but i want to group some particular data in the form of a group such as in airport list namely JFK in that all lat,long,name,code of the airport has to make one array similarly the other airports.Please help me the issue. …
Danny
  • 1,050
  • 3
  • 11
  • 26
0
votes
1 answer

How to loop through all the levels of treeview to hide some nodes according to some condition?

Is there some way to loop through all the levels of treeview nodes . I have a tree view with xml datasource :
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392