Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 6th, 2008, 8:15 PM   #1
Robocop
Programmer
 
Join Date: Sep 2004
Posts: 44
Rep Power: 0 Robocop is on a distinguished road
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!
Robocop is offline   Reply With Quote
Old Feb 6th, 2008, 8:34 PM   #2
Ghost
Man Bear Pig Hunter
 
Ghost's Avatar
 
Join Date: Jul 2005
Location: NorCal, USA
Posts: 292
Rep Power: 4 Ghost is on a distinguished road
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.
Ghost is offline   Reply With Quote
Old Feb 7th, 2008, 9:13 PM   #3
Robocop
Programmer
 
Join Date: Sep 2004
Posts: 44
Rep Power: 0 Robocop is on a distinguished road
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
Robocop is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC