DataSet problem [modified]
-
I'm working on my first ASP.NET application ever, so this might be an easy problem to solve for you. I'm collection data from different xml files and want to store them in an DataSet. The data will be shown with an repeater. The page will show something like this: (Short version, will be lots of more information) Miami Engineering 1. General Doc one Doc two 2. Feasibilty calculations Doc three Doc four Doc five When I try to add the data to my DataSet the way I was thinking, I get the error "A DataTable named 'Document' already belongs to this DataSet." This is when I try to make a DataSet with this structure: <projects> <project> <projectname> Miame Engineering <projectname> <project> <part> <partname> 1. General </partname> </part> <document> <documentname> Doc one </documentname> </document> <document> <documentname> Doc two </documentname> </document> <part> <partname> 2. Feasibilty calculations </partname> </part> <document> <documentname> Doc three </documentname> </document> <document> <documentname> Doc four </documentname> </document> <document> <documentname> Doc five </documentname> </document> </projects> How will I build my DataSet so I can get the output that I want?
modified on Monday, November 17, 2008 5:03 PM
-
I'm working on my first ASP.NET application ever, so this might be an easy problem to solve for you. I'm collection data from different xml files and want to store them in an DataSet. The data will be shown with an repeater. The page will show something like this: (Short version, will be lots of more information) Miami Engineering 1. General Doc one Doc two 2. Feasibilty calculations Doc three Doc four Doc five When I try to add the data to my DataSet the way I was thinking, I get the error "A DataTable named 'Document' already belongs to this DataSet." This is when I try to make a DataSet with this structure: <projects> <project> <projectname> Miame Engineering <projectname> <project> <part> <partname> 1. General </partname> </part> <document> <documentname> Doc one </documentname> </document> <document> <documentname> Doc two </documentname> </document> <part> <partname> 2. Feasibilty calculations </partname> </part> <document> <documentname> Doc three </documentname> </document> <document> <documentname> Doc four </documentname> </document> <document> <documentname> Doc five </documentname> </document> </projects> How will I build my DataSet so I can get the output that I want?
modified on Monday, November 17, 2008 5:03 PM
I am not sure why you're using a dataset, but it doesn't look to me like the data you're using is compatible, unless you specify a maximum number of doctors.
Christian Graus Driven to the arms of OSX by Vista.
-
I am not sure why you're using a dataset, but it doesn't look to me like the data you're using is compatible, unless you specify a maximum number of doctors.
Christian Graus Driven to the arms of OSX by Vista.
-
I'm using a DataSet because I want to be able to add, delete and change data in it. What do you mean with specifying maximum number of documents? Haven't seen that option, so how do I do that?
Miami Engineering 1. General Doc one Doc two 2. Feasibilty calculations Doc three Doc four Doc five This is a tree, with three levels. You would have to create three tables and define the relationship between them, to reproduce this structure. Not sure if .NET is smart enough to do that by itself.
Christian Graus Driven to the arms of OSX by Vista.