![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2004
Posts: 44
Rep Power: 0
![]() |
ASP.NET Survey Help
I want to do a survey with ASP.NET and SQL Server 2005, and I'm looking for advice here.
I have the graphical design done, but I need help on the tables that would be needed for this, and how to store the radiobutton values into those tables. I also have a table where I'm storing the information of the applicant that will fill the survey, but I have that done. Example 1. Are you at least 18 years of age? () Yes () No 2. How is your knowledge of computers? () Excellent () Great () Average () Below Average Thanks in advance! |
|
|
|
|
|
#2 |
|
Man Bear Pig Hunter
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4
![]() |
Re: ASP.NET Survey Help
I'd store the questions seperate from the answers for starters.
tabQuestions - This will hold all of your questions, and maybe what test they belong to? tabAnswers - This will Hold your Answers for your Questions tabQuestions tabSurvey - This will hold the info of each Survery, basically it will tell you what question was asked and the answer to it. Lets say tabQuestions looked like this: ID, TestID, Question, Sort 1, 1, Are you at least 18 years of age?, 0 2, 1, How is your knowledge of computers?, 1 tabAnswers like this: ID, QuestionID, Answer, Sort 1, 1, Yes, 0 2, 1, No, 1 3, 2, Excellent, 0 4, 2, Great, 1 5, 2, Average, 2 6, 2, Below Average, 3 tabSurvery like this: ID, Survery, TestID, QuestionID, AnswerID 1, 1, 1, 1, 1 2, 1, 1, 2, 2 That should do I think. Basically I said for the 1st Test you made, the first time anyone took it, I was 18 with great knowledge of computers. Hope that helps you a little. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Sep 2004
Posts: 44
Rep Power: 0
![]() |
Re: ASP.NET Survey Help
Thanks for your help.
I managed to save the answers id's into the database by using the radiobuttonlist's Value property, and using the text property to display the possible answers. Also, used the Session object to store the ID of the person, and this way passing it into other webforms! Again Thanks |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vb.net C# Asp.net | Swan | Visual Basic .NET | 7 | Jan 16th, 2008 10:19 PM |
| Learning ASP.net | Samerron | ASP.NET | 7 | Aug 28th, 2007 3:45 AM |
| Using Java versus ASP.NET (C#) for new Web Project | ReggaetonKing | Java | 5 | Jul 2nd, 2007 8:41 PM |
| ASP.Net Tutorial | smita | ASP.NET | 0 | Mar 15th, 2007 7:43 AM |
| ASP.NET > ASP | Ghost | ASP.NET | 11 | Dec 2nd, 2005 10:16 PM |