C#中的投票系统 [英] Voating system in c#

查看:88
本文介绍了C#中的投票系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何对物业的投票系统进行编码?

我正在开发一个网站,我需要在该网站上有一个应用程序,访客可以通过按一个按钮Give来给自己像投票一样.而且每次投票的投票人数都在增加.

How to do coading for voting system for a property ?

I am developing a web site, i need a application in this site that visitor give his like as voting by presing a button give.And persent of voting is increasing as per each voting.

推荐答案

投票只是一个数字.因此,它只是您存储在数据库中的值.您只需要显示一个允许人们投票,跟踪他们的投票的UI(仅当您的网站需要登录时才可以这样做,否则您可以使用Cookie或跟踪IP,但这意味着他们可以轻易击败它).如果您存储了任何值得投票的内容(例如评论,文章或其他内容),那么投票部分确实微不足道.只需考虑一下您想做什么,然后确定您想怎么做即可.
A vote is just a number. As such, it''s just a value you store in your database. You just need to show UI that lets people vote, track their vote ( you can only do this if your site requires a login, otherwise you can use a cookie or track IP, but that means they can easily defeat it ). If you have stored anything worth voting on ( like comments, or articles, or whatever ), then the voting section is really trivial. Just think about what you want it to do, and map out how you want to do it.


这篇关于C#中的投票系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆