学习练手先看:在本机怎么跑起来、要装什么环境。
一个用于展示 ASP.NET 2.0 投票功能的演示程序,帮助了解相关控件与后台管理
一、源码描述
环境:VS2022 sql2019
二、功能介绍
通过一个简单的Asp.net2.0投票程序展示VS2005中的新控件,如MemberShip、SqlDataSource、GridView及Master模板文件等,该系统采用的是Sql2005数据库
前台具有防止重复投票功能,后台可以通过登陆然后对投票进行分类管理。
Default.aspx - lists all of the existing polls and enables the administrator to edit the poll, delete it, or view its results. The administrator can also add a new poll from here.
EditPoll.aspx - lists the details for a particular poll, including the poll question ("What is your favorite programming language?") and the poll's answers ("Visual Basic", "C#",
"Pascal", and so forth). Existing poll answers may be edited or deleted; moreover, new poll answers may be added.
PollResults.aspx - displays the results for a specified poll.
Editing, Deleting, and Adding Poll Answers
Clicking the Edit button for a poll takes users to EditPoll.aspx, passing the PollID in the querystring. EditPoll.aspx allows the administrator to perform the following tasks:
Change the poll's question text
Edit an existing answer, updating its display text and sort order
Delete an existing answer (along with any votes that may have been cast for it)
Add a new answer to the poll
三、注意事项
1、在项目web.config修改数据库连接字符串,附加数据库。
2、管理员账号与密码:51aspx 51aspx 。
3、ctrl+F5运行即可。

点文件目录里的文件名可以在线看代码;看不懂某个文件,可以在代码页下面请 AI 解读, 配置文件、建库脚本、说明文档还能选「部署 / 配置说明」,告诉你部署时要改哪几处。
「」
基于 ASP.NET2.0投票演示程序 定制。随手写几句,AI 整理成开发者看得懂的需求单;平台商务会联系您评估怎么改、大概多少钱。
已登录 ,联系方式已从账号带出,只需补充缺少的。
平台商务会按您选的时间段联系您。项目商家也会收到这条需求(不含您的联系方式),能做的话会给出报价和周期。

正在加载登录窗口…
打开手机微信,使用「扫一扫」
正在准备微信登录
首次使用将自动创建账号;已有微信账号直接登录