Filling data in FormView from different tables
Posted
by wacky_coder
on Stack Overflow
See other posts from Stack Overflow
or by wacky_coder
Published on 2010-03-13T13:03:26Z
Indexed on
2010/03/13
13:35 UTC
Read the original article
Hit count: 371
Hi,
I am using a FormView in an online quiz page for displaying the questions and RadioButtons (for answers)
http://stackoverflow.com/questions/2438219/online-quiz-using-asp-dot-net
Now, I need to pick the questions according to a TestID and a particular Set of that Test. The testid and the set_number would be passed using Session variables. I'm having 3 testIDs and 3 Sets per TestID and, thus, am using 9 tables to store the Questions, the Options and the correct answer.
I need help on how to set the FormView so that it extracts the questions from a particular table only. Do I need to use a StoredProcedure ? If yes, how?
PS: If I use only one table to store all the questions from each Set and for each TestID, I can do that, but I'd prefer using separate tables.
© Stack Overflow or respective owner