Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2014, 06:11 PM
Registered User
 
Join Date: Mar 2014
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I set up a voting system in my ASP.NET webpage?

-=First things first, let's establish that I know some ASP.NET, but not all (Same with C#=-

This is more of a C# question that ASP.NET, but I was wondering how I could implement a voting system that would allow my to do one of two things (These are just the strategies I've come up with so far, I'm open to anything):

1) Have an object with the parameter "name" and "votes", that allows you to have an object, say "Person1" that you could vote for.

2) Have an array/dictionary (that thing that holds a value, like a word, and a linked string, like a definition. I forget what it's called) that holds the persons name, and the correlated votes.

If it were just figuring out how to use one of those, this would be easier. But my main question is, How can I organize them, in a webpage, by the amount of votes they have? The simplest solution I can think of would be to use a while/foreach to compare every single value to every single other one, and there has to be a better way to accomplish this than that.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in Poll system in asp.net c# Syamand BOOK: Beginning ASP.NET 4 : in C# and VB 9 January 15th, 2012 09:23 AM
asp.net webpage pulling sp_who2 help!!!! zombie212 ASP.NET 1.0 and 1.1 Basics 2 August 16th, 2007 07:28 AM
How can I set system time & date in VB.net ? mike123abc Pro VB.NET 2002/2003 1 April 27th, 2007 10:00 AM
Voting system for gsm modem sime_tyres VB How-To 0 August 8th, 2006 10:50 AM
asp.net webpage expiry? imsuneeta General .NET 1 January 8th, 2005 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.