Click here to Skip to main content
15,898,947 members
Home / Discussions / C#
   

C#

 
Questionfile not uploading Help.... Pin
Member 1132096518-Dec-14 5:47
Member 1132096518-Dec-14 5:47 
AnswerRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 5:56
mveOriginalGriff18-Dec-14 5:56 
AnswerRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 6:39
mveOriginalGriff18-Dec-14 6:39 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 6:42
Member 1132096518-Dec-14 6:42 
AnswerRe: file not uploading Help.... Pin
Matt T Heffron18-Dec-14 6:54
professionalMatt T Heffron18-Dec-14 6:54 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 7:01
Member 1132096518-Dec-14 7:01 
GeneralRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 8:12
mveOriginalGriff18-Dec-14 8:12 
GeneralRe: file not uploading Help.... Pin
Member 1132096518-Dec-14 8:33
Member 1132096518-Dec-14 8:33 
GeneralRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 8:56
mveOriginalGriff18-Dec-14 8:56 
GeneralRe: file not uploading Help.... Pin
Member 1132096519-Dec-14 7:36
Member 1132096519-Dec-14 7:36 
GeneralRe: file not uploading Help.... Pin
OriginalGriff19-Dec-14 8:04
mveOriginalGriff19-Dec-14 8:04 
GeneralRe: file not uploading Help.... Pin
Member 1132096519-Dec-14 8:43
Member 1132096519-Dec-14 8:43 
GeneralRe: file not uploading Help.... Pin
OriginalGriff20-Dec-14 1:07
mveOriginalGriff20-Dec-14 1:07 
GeneralRe: file not uploading Help.... Pin
Member 1132096522-Dec-14 3:32
Member 1132096522-Dec-14 3:32 
AnswerRe: file not uploading Help.... Pin
Mycroft Holmes18-Dec-14 11:49
professionalMycroft Holmes18-Dec-14 11:49 
GeneralRe: file not uploading Help.... Pin
OriginalGriff18-Dec-14 21:49
mveOriginalGriff18-Dec-14 21:49 
GeneralRe: file not uploading Help.... Pin
Mycroft Holmes19-Dec-14 14:20
professionalMycroft Holmes19-Dec-14 14:20 
QuestionHow to create an auto generated ID Pin
ochaya gerald18-Dec-14 1:25
ochaya gerald18-Dec-14 1:25 
SuggestionRe: How to create an auto generated ID Pin
Richard Deeming18-Dec-14 1:36
mveRichard Deeming18-Dec-14 1:36 
AnswerRe: How to create an auto generated ID Pin
OriginalGriff18-Dec-14 1:53
mveOriginalGriff18-Dec-14 1:53 
QuestionHow to fill a list with a dataset with multiple tables? In C# Pin
Member 1131834917-Dec-14 21:20
Member 1131834917-Dec-14 21:20 
I put an xml file with a structure like this
HTML
<list>
<person>
<name>Micky Mouse</name>
<phone>
<phone1>1111111</phone1>
<phone2>2222222</phone2>
</phone>
</person>
<person>
<name>Donald Duck</name>
<phone>
<phone1>3333333</phone1>
</phone>
</person>
<person>
<name>Pluto</name>
<phone>
</phone>
</person>
<person>
<name>Goofy</name>
<phone>
<phone1>5555555</phone1>
<phone2>6666666</phone2>
<phone3>7777777</phone3>
</phone>
</person>
.....
.....
.....
</list>

into a dataset and then I try to load the dataset into a list. The problem is there are 2 root tables (person and phone) in the main table (list) and I am not sure how to loop through the dataset to fill my list (List<Person> ListP = new List<Person>())
so that the the content of each would match the correct parts.

Example

ListP[0] would contain Micky Mouse, 1111111, 2222222,
ListP[1] would contain Donald Duck 333333
ListP[2] would contain Pluto
ListP[3] would contain Goofy 5555555, 6666666, 7777777

… ect

Thanks for any help

modified 18-Dec-14 4:31am.

AnswerRe: How to fill a list with a dataset with multiple tables? In C# Pin
Freak3017-Dec-14 22:48
Freak3017-Dec-14 22:48 
GeneralRe: How to fill a list with a dataset with multiple tables? In C# Pin
Member 1131834917-Dec-14 23:48
Member 1131834917-Dec-14 23:48 
AnswerRe: How to fill a list with a dataset with multiple tables? In C# Pin
Simon_Whale17-Dec-14 23:58
Simon_Whale17-Dec-14 23:58 
QuestionTask Parrallel Pin
Mycroft Holmes17-Dec-14 15:36
professionalMycroft Holmes17-Dec-14 15:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.