Home > Ask the Microsoft .Net Development Experts > Business Issues of .NET Development Questions & Answers > How can I sort a survey by answer?
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

How can I sort a survey by answer?

Berni McCoy EXPERT RESPONSE FROM: Berni McCoy

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 11 May 2004
I work for a school district, and our special services department needs to compile a "survey" that will ask questions about students' special needs. There will be about 170 questions and the answers will be either yes or no. I want to use radio buttons for the yes or no answers. Once the survey is complete, I want to be able to query only the "yes" answers onto another page. Basically, the "no" needs are to be disregarded. I hope you are able to understand this! What they do now is go through all 170 questions and delete the "no" answers. This is very time consuming, especially for a Special Ed teacher. Thank you in advance for any help you can give me.

>
The answer really depends on how you are collecting the answers. If you are just collecting them and storing them in session variables, then you'll have to have a processing loop on the result page that displays only the questions that received a "yes" response. If you are using a database, then you could have the result page generated using a SQL statement similar to the following: "SELECT * from SurveyResults where Response = 'Yes'". If you are storing the results to a text file, then I would only store the questions that received "Yes" responses (assuming each student gets his/her own file).


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Business Issues of .NET Development
Is there a way around making each domain user a member of the debugger group?
What is a 'delay sign'?
How can I display an active image from webcam using Visual C++ code?
Is it possible to use or convert our existing VB programs to JSP pages?
Is it possible to send input to a non-Microsoft program?
What is the major difference between VB6.0 and the VB.NET?
How can an ASP.NET Web app collect info and send it to another site via SSL using an HTTPS POST?
ColdFusion vs. VS.NET
Are additional licenses or permissions needed to sell software developed using VS.NET?
Is the switch from VB6 to VB.NET worthwhile?

Business Issues of .NET Development
Is there a way around making each domain user a member of the debugger group?
What is a 'delay sign'?
How can I display an active image from webcam using Visual C++ code?
Is it possible to use or convert our existing VB programs to JSP pages?
Is it possible to send input to a non-Microsoft program?
What is the major difference between VB6.0 and the VB.NET?
How can an ASP.NET Web app collect info and send it to another site via SSL using an HTTPS POST?
ColdFusion vs. VS.NET
Are additional licenses or permissions needed to sell software developed using VS.NET?
Is the switch from VB6 to VB.NET worthwhile?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts