哪位兄弟能给个ASP.Net(c#)的在线投票系统代码或实例?

来源:百度知道 编辑:UC知道 时间:2024/07/08 02:17:21
要求:
1、带有防刷功能
2、不要弄得太复杂,放在公司内部网使用的
3、界面漂亮点,哈哈
4、最好用SQL SERVER数据库
5、谢谢!
补充:请把实例发到我的邮箱:6310770@qq.com

已发送

要求:
1、带有防刷功能
用IP验证:
protected void Page_Load(object sender, EventArgs e)
{
ip = Request.UserHostAddress;//获取头片用户IP
voteID = Request.QueryString["voteID"];
SqlDataReader dr = DB.reDr("select * from tb_VoteIP where ip='" + ip + "'and VoteID='" + voteID + "'");
dr.Read ();
if(dr.HasRows)
{
Response.Write("<script>alert('您已经投过票了!');location='../Index/Index.aspx';</script>");
}

if (!IsPostBack)
{
bind(voteID);
lblVoteTitle .Text =Request.QueryString["Title"];
}
}

public void bind(string voteID)//绑定投票项
{
string str = "select * from tb_VoteItem where VoteID='"+voteID+"'";
try
{