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

any alternative to xmldatasource in asp.net menu control

my code is as follows DataSet ds = new DataSet(); string connStr = "Data Source=PARITAS00024;Initial Catalog=MenuDb;Persist Security Info=True;User ID=sa;Password=paritas123"; using (SqlConnection conn = new SqlConnection(connStr)) …
Harsha
  • 1,161
  • 4
  • 18
  • 38
0
votes
1 answer

Seeking Advice: Updating a FormView Based on DropdownList Value

Greetings! I'm looking for some advice regarding an approach to displaying data in a FormView based on a selection of a DropDownList within that FormView control. For example, I have a UserControl with the following:
Bullines
  • 5,626
  • 6
  • 53
  • 93
0
votes
3 answers

How relevent is xls file for .NET developer?

Once in a while, we use .XLS file to convert the data stored in the XML file and populate some dropdownlist and other server controls using XmlDataSource object. I am just wondering how popular is the use of the.XLS file in the .Net proejcts? We…
Shiva
  • 1,379
  • 1
  • 15
  • 32
0
votes
0 answers

XML data extraction from a parent node using sql

I have an xml data as follows 0 23 1
sajan
  • 1
0
votes
1 answer

XML parsing: Object reference not set to an instance of an object

I am parsing XML in a dataset it works fine except with some RSSs it gives an error: Object reference not set to an instance of an object. I tried the XmlDataSource and it gives the same error Note that there isn't any differences between the…
Miroo
  • 795
  • 3
  • 13
  • 35
0
votes
1 answer

Bind XmlDataSource dynamically to uploaded XML

XmlDataSource bound to XmlDocument What I want to do: Read a XML-File from user and display it in GridView and DetailsView. Here the user can make modifications or add new entries. Then he can download the modified XML-file to his harddrive. Sample…
L. Held
  • 1
  • 2
0
votes
0 answers

Can I use a SelectParameters with an XmlDataSource?

I'm using an XmlDataSource in my ASP.NET application as a way to prototype schema and data before actually implementing on SQL Server database. So far I am able to bind .NET controls to the XmlDataSource and corresponding XML file in the expected…
atjoedonahue
  • 476
  • 6
  • 19
0
votes
2 answers

Master/Details view with XmlDataSources

I have a basic test web form with a DataList and a DetailsView and two XmlDataSource components for each of them. The binding of the DataList to the underlying XML document was easy to set up, but I'm struggling with getting the DetailsView hooked…
larsw
  • 3,790
  • 2
  • 25
  • 37
0
votes
1 answer

jaspersoft studio 6.2 XML Data source ssl error

I am trying to add an "XML File" datasource in Jaspersoft Studio 6.2 to a report which is actually a call to a REST service requiring a single parameter as part of the path. if the image doesn't display here is a description: The URL I use is like…
0
votes
1 answer

ASP.NET/XML: Convert XmlDataSource to HTML?

How can I parse an remote xml file with XMLDataSource to HTML? Xpath? Can someone show me a quick demo please? Thanks!
aspen7
  • 11
  • 1
0
votes
2 answers

Do I need to call .Dispose() on both of these XmlDataSource objects? "CA2000 Dispose objects before losing scope" tells me to .Dispose() it

In my extremely simplified code sample my Foo() method calls GetXmlDataSource() which returns an XmlDataSource. CA2000 says that I should Dispose() an XmlDatasource before losing scope. Should I wrap each XmlDataSource in a using statement? Should…
Kristopher
  • 819
  • 14
  • 31
0
votes
2 answers

Updating a XmlDataSource at runtime

I have this DropDownList bound to a XmlDataSource, but the XPath must depend on another input (another DropDownList). I modify the XPath and rebind inside the parent DDL's SelectedIndexChanged, but the page does not refresh. What should I do to…
Antoine
  • 5,055
  • 11
  • 54
  • 82
0
votes
3 answers

Handling XmlDataSource when remote XML source not available

When using an XmlDataSource is there good way to handle exceptions that are caused when the remote XML file is unavailable? I'm somewhat new to .NET and using C#.
itsatrp
  • 103
  • 2
  • 9
0
votes
1 answer

Is using subreports the only solution here?

We are using Jasper Reports to build our reports. There's a report which looks somewhat like this. Rcpt No | Rcpt Date | Dealer Name | Items | Qty Ordered | Qty Received | Qty Accepted | Qty…
Vivek Todi
  • 361
  • 1
  • 9
  • 24
0
votes
1 answer

How to update datatype of column in a dataview

i have a below function in which the variable dataCollection hold the dataview having some datas. i need to change the column "AllDay" in the dataCollection from string datatype to boolean data type. public override void FetchData(IEnumerable…
user2877778
  • 37
  • 1
  • 8