1、 I 摘 要 大学期间总会有很多公共选修课,以往的选课方法是随堂报名。这种方法虽然 直接,但是造成选课的盲目性,有些课堂选课时人满为患,有些课堂无人选课。原 因是传统的选课方法没有预见性, 大家没有事先协调好。 使用了网上选课系统以后, 可以在开课前就在网上选课,每个学生的课程在开课前就确定好,不用浪费体力去 选课,还可以使教学资源合理平均地分配。该 B/S 结构的系统在 Windows XP 系统 和 VS.NET 平台下开发完成,使用 C作为 ASP.NET 的开发语言,SQL Server 2000 作为数据库。系统有较高的安全性和较好的性能。其中连接数据库的字符串可以随 时在 web.
2、config 里修改,并经过编码加密,增加了灵活性,保护了数据库的安全。 代码中通过使用进程中的 Session、 尽量使用存储过程和尽量减少数据库连接的打开 时间等手段来提高性能。通过分析 B/S 结构的特点并结合我校公共选修课的实际情 况,提出了基于 B/S 结构网上选课系统的基本设计思想,简要介绍了系统各功能模 块及数据库的设计,着重讨论了用 ASP.NET 技术和 SQL Server 2000 开发网上选课 系统时的数据库访问技术和动态网页制作技术,并给出了部分实现代码。通过该系 统,使学生可以方便地在校园网上进行网上选课。 关键词:网上选课; 浏览器/服务器结构; 数据库管理系统;
3、 存储过程 II ABSTRACT There are many public elective courses during university period, and always we should goto classroom to enroll. Although this method directly, but result in blindness of the course enrollment. Some classrooms overcrowding during course choosing period, on the contrary some classroo
4、ms desolate. The reason of this situation is that the traditional method of course choosing lack prescience, and there are no prior coordination. With the help of public elective courses online course elect system, every students courses can be determined before the beginning of the term, saving physical force and reasonably distributing teaching resources.This B/S structure system is developed under VS.NET platform in Windows XP operating system, using C# as ASP.NET development language and