Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
In my MVC project, I have some tables like this:
 
Form (FormID, SectionID)
Section (SectionID, SectionName)
SectionQuestion (SectionID, QuestionID)
Question (QuestionID, Content)
 
A form has multiple sections, and a section has some questions.
 
I want to use linq to get data and make a Binary tree like this:
 

Form1
     | Section 1
           | Question 1
           | Question 2
     | Section 2
           | Question 1
 

Can anyone help me?
Posted 17-Nov-12 16:20pm
Comments
Sergey Alexandrovich Kryukov at 17-Nov-12 22:22pm
   
Not a valid question. Help with what? What did you try? What's the problem?
--SA
david didva at 18-Nov-12 0:06am
   
I want to store data in to the binary tree
Sergey Alexandrovich Kryukov at 18-Nov-12 0:32am
   
Not a question, again. What did you try? What's the problem?
--SA
david didva at 18-Nov-12 0:43am
   
lol SA, I think my question content is very clean. I want to get all data from Form, Section, Question tables into a binary tree. My question is: how to do that??? Btw, tyvm
Nelek at 18-Nov-12 8:22am
   
There are thousands of ways to mess things up, without a bit code or better information... how we can know, which one is your favourite?
What sergey means is: what have you tried?[^]
Sergey Alexandrovich Kryukov at 18-Nov-12 10:59am
   
I actually asked exactly that already...
And I disagree to understand "Btw, tyvm"... To me it looks rude. What, very difficult to spell English words? Why other spell everything in full and do not complain about the hardness of the job? :-)
--SA
Nelek at 18-Nov-12 16:17pm
   
I know that you were asking that. He can read it and know why :) About the sms-chat... I agree with you. Writing correctly doesn't cost so much and makes things easier

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 768
1 OriginalGriff 420
2 CPallini 275
3 George Jonsson 226
4 Richard Deeming 145
0 OriginalGriff 5,450
1 CPallini 4,500
2 Sergey Alexandrovich Kryukov 4,272
3 George Jonsson 3,057
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100