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

RadioButtonList inside Repeater bound to XmlDataSource

I have the following XML: And I have the…
tjc59
  • 633
  • 8
  • 24
0
votes
1 answer

Transform Xml using Xslt

I have the following XML: Cat1 Cat2 Cat3 Cat4 Cat5
Picflight
  • 3,832
  • 13
  • 61
  • 90
0
votes
1 answer

Binding to XMLDataProvider

Made a simple test project where i try to bind to a xmldatasource in a proto viewmodel public partial class Window1 : Window { //private XmlDataProvider _provider = new XmlDataProvider(); private MyViewModel _myViewModel = new…
klashagelqvist
  • 1,251
  • 2
  • 26
  • 52
0
votes
1 answer

Query to shred XML without CROSS APPLY

I have the following XML: DECLARE @Temp XML = ' Jacal Duardo
0
votes
1 answer

ComponentOne : C1NavigationList databinding with XMLDataSource

In the process of Iphone View ability for a shopping cart system, where i am trying to implement using the ComponentOne tools for Iphone in the products listing.For which i have identified C1NavigationList control for the same. As i understand it is…
balu
  • 322
  • 4
  • 13
0
votes
1 answer

Counting ItemTemplate in ListView from XmlDataSource in ASP.net

I have the following code. It works as is, but... I am not always going to have an even number of items in the RSS feed So, at the end of the table, I might have only one table cell on the last row. So, is there a way to count the number of…
Soren
  • 797
  • 5
  • 15
  • 32
0
votes
1 answer

How to reset an XMLGregorianCalendar to new values

I'm going to be doing some work with dates millions of times per day. I've created an XMLGregorianCalendar to handle the dates from an XML feed as such: XMLGregorianCalendar xCalEst = null; xCalEst =…
Rod Meyer
  • 568
  • 4
  • 7
0
votes
1 answer

ASP.NET Dropdown Menu not refreshing data

I am constructing an ASP.NET Menu using an asp:XmlDataSource and setting the Data property and binding the Menu. Everything works well until I have to change the menu. For instance when I remove a menu item from the xml and set the Data to a new…
netwisedev
  • 41
  • 7
0
votes
1 answer

Financial News Analysis - Unble to extract data from tags and convert it into text

I am extracting financial data from the website and like to store it in the data frame later for sentiment analysis. Issues: When I use for loop to process all the items I am not able to convert it to the text which results in data with tags. (for…
Uday
  • 17
  • 5
0
votes
0 answers

Resources File (.resx): Value does not fall within the expected range

I have a resource file named Test.resx and I am trying to add Name&Value to the resource file dynamically using C# code like below and my code works fine but when I try to open the file or read the file it says the below error. Error: Value does not…
Md Aslam
  • 1,228
  • 8
  • 27
  • 61
0
votes
1 answer

How do I pass a XSLT parameter to a XmlDataSource correctly?

I believe I have all the code correct but I can't get it to work. The GridView has allowSorting = true. So in theory, when I click on the column header the xml in the gridview should sort by that column. The XML shows in the GridView, but doesn't…
dotnetN00b
  • 5,021
  • 13
  • 62
  • 95
0
votes
2 answers

How to achieve reversed document ordered XmlDataSource in ListView?

I'm using an asp:XmlDataSource to list an xml document. It looks like this: And I'm using it in a asp:Listview like this:
Kees C. Bakker
  • 32,294
  • 27
  • 115
  • 203
0
votes
1 answer

Extract XML data in SQL table using T-SQL

I want to extract complex XML data to SQL server. Already tried SSIS package with no success. What do I change in my code to desired output I have tried below T-SQL DECLARE @xmlData XML SET @xmlData = ( SELECT CONVERT(XML, BulkColumn) AS…
john
  • 1
0
votes
1 answer

How to delete in asp:ListView that uses asp:XmlDataSource?

I've created an asp:ListView and attached it to an asp:XmlDataSource. I would like to support the delete command for my list, so I've added the following button:
Kees C. Bakker
  • 32,294
  • 27
  • 115
  • 203
0
votes
3 answers

Display data from XMLDataSource in TextBox

Can anyone give me some pointers on how to display the results of an XPath query in a textbox using code (C#)? My datascource seems to (re)bind correctly once the XPath query has been applied, but I cannot find how to get at the resulting data. Any…
John