Wednesday, March 28, 2012

voting

ok i have this page setup:http://www.kimzeycasing.com/logos/

now what i am looking for here is for my users to come here and select the logo they like then submit it then when they submit it goes to the page results.aspx and they can see the results of the number of people that have voted for the logo..

i already have the submit button redirecting to the results.aspx page, how do i captupe the votes to show the number of votes a logo got?

Well, your probably going to need to store the results somewhere. You could just an xml file, or a database. You'd need to be able to identify which logo was selected and then increment the vote for it by one each time.

I think what you are looking for is some variation of a polling system.

See these for ideas, you could easily modify them to do what you want

http://www.beansoftware.com/ASP.NET-Tutorials/Poll-Application.aspx

http://www.codeproject.com/useritems/Site_Poll_Control.asp

http://www.asp.net/community/control-gallery/browse.aspx?category=44

0 comments:

Post a Comment