Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old March 11th, 2014, 07:11 PM
Registered User
Points: 36, Level: 1
Points: 36, Level: 1 Points: 36, Level: 1 Points: 36, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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.
Reply With Quote

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:28 AM
How can I set system time & date in VB.net ? mike123abc Pro VB.NET 2002/2003 1 April 27th, 2007 11:00 AM
Voting system for gsm modem sime_tyres VB How-To 0 August 8th, 2006 11:50 AM
asp.net webpage expiry? imsuneeta General .NET 1 January 8th, 2005 08:23 AM

All times are GMT -4. The time now is 05:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.