Click here to Skip to main content
13,247,005 members (89,299 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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:

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

Can anyone help me?
Posted 17-Nov-12 17:20pm
Sergey Alexandrovich Kryukov 17-Nov-12 22:22pm
Not a valid question. Help with what? What did you try? What's the problem?
david didva 18-Nov-12 0:06am
I want to store data in to the binary tree
Not a question, again. What did you try? What's the problem?
david didva 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 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 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? :-)
Nelek 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2017
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