毕业论文--基于web的考试报名系统的设计与实现内容摘要:
for int i 0。 i 31。 i++ i + 1 .ToString。 else //其他月份则为 30 天 for int i 0。 i 30。 i++ i + 1 .ToString。 protected void Button2_Click object sender, EventArgs e //把出生年月转换为时间 if ! 0 amp。 amp。 ! 0 amp。 amp。 ! 0 int selectedyears。 int selectedmonth。 int selectedday。 birth new DateTime selectedyears, selectedmonth, selectedday。 string str server localhost。 Integrated security true。 database userinfo。 SqlConnection conn new SqlConnection str。 string sql select * from user_info。 SqlCommand cmd new SqlCommand sql, conn。 //打开数据库连接。 cmdmandText @INSERT INTO user_info User_Name,User_Address,User_Sex,User_tel,User_Email,User_race, User_Degree,User_Password,User_Birthday VALUES @name,@address,@sex,@telphone,@,@race, @degree,@password,@birth。 @name, .Value。 @address, .Value。 @sex, .Value。 @telphone, .Value。 @, .Value。 @race, .Value。 @degree, .Value。 @password, .Value。 @birth, .Value birth。 try if 0 //检索刚刚插入数据表中的 User_ID 号,通过User_ID 号跳转页面 cmdmandText select User_ID from user_info where User_Name @username and User_Password @pws and User_Email @mail。 @username, .Value。 @pws, .Value。 @mail, .Value。 int id。 注册成功,欢迎您的到来。 39。 登录成功。 39。 ~/?userid 0 ,id。 else 注册失败,请重新填写。 catch 操作出现错误。 3 查询模块 考生在此模块中可以查询自己的报名情况,因此考生可以通过用户名进行查询,还可以通过科目选择查看。 因为考生的查询有权限限制,而且为了确保考生的信息不被其他人利用,所以使用用户名查询可以查看到考生的全部信息,而使用科目查看只能查询到此科目的详细信息和报考的人的姓名 ,这两种查询方式反映给用户的结果是不同的,那么它在数据库中的操作也是不同的,这里主要的操作是查询,而查询就要涉及到 DataBase 类中的一个通用查询方法 mySelect String sql 在这个方法中,需要传递一个 sql 语句和一个 字符串数组, sql 语句只能是查询语句。 查询模块界面: 核心代码: protected void Page_Load object sender, EventArgs e false。 false。 false。 false。 false。 请您记住你的用户 ID 号 ,登录时请用 ID 号登录。 string userid [userid]。 string str server localhost。 Integrated Security true。 database userinfo。 SqlConnection conn new SqlConnection str。 SqlCommand cmd new SqlCommand str, conn。 //打开连接 cmdmandText select User_Name from user_info where User_ID @id。 @id, .Value userid。 try .ToString。 catch 数据库操作发生错误。 protected void LinkButton1_Click object sender, EventArgs e true。 false。 false。 false。 false。 string userid [userid]。 //由登录页面传过来的 userid 号。 string str server localhost。 integrated security true。 database userinfo。 SqlConnection connection new SqlConnection str。 SqlCommand cmd new SqlCommand str,connection。 try cmdmandText select * from user_info where User_ID @id。 @id, .Value userid。 SqlDataAdapter adapter new SqlDataAdapter。 cmd。 DataSet ds new DataSet。 ds。 if [0].Rows[0][User_Birthday].ToString //如果出生日期字段为空,则显示为空。 else DateTime birth [0].Rows[0][User_Birthday].ToString。 TimeSpan ts birth。 int / 365 .ToString。 [0].Rows[0][User_ID].ToString。 [0].Rows[0][User_Name].ToString。 [0].Rows[0][User_Sex].ToString。 [0].Rows[0][User_Address].ToString。 [0].Rows[0][User_Email].ToString。 [0].Rows[0][User_tel].ToString。 [0].Rows[0][User_race].ToString。 [0].Rows[0][User_Degree].ToString。 catch。毕业论文--基于web的考试报名系统的设计与实现
相关推荐
时 , 在可选超时周期之后 , X25045 看门狗将以 RESET 信号作出响应。 X25045 片还有一个显著的特点是它内部的闪烁存储器 2 KX8 位的 EEPROM,它采用 Xicor公司 Direct WriteT 专利技术 , 提供不少于 100 000 次的使用年限和最小 100 年的数据保存期 , 在本系统中 ,用于存储汽车行驶的总里程数。 系统 CPU 的选择
................................. 13 优选设计方案和设计单位的风险 .................................... 14 合同双方责任分配模糊的风险 ...................................... 14 3. 4 设计实施阶段风险的识别 ..................................
可以将各种交织在一起的由不同频率组成的混合信号分解成不同频率的块信号,能够有效地解决诸如数值分析、信号分析、图像处理、量子理论、地震勘探、语音识别、计算机视觉、 CT 成像、机械故障 诊断等问题。 因此,小波分析在图像去噪方面有着广泛地应用。 小波变换 连续小波变换 [13, 14] ( 1)连续小波基函数 所谓小波 Wavelet ,即存在于一个较小区域的波。 小波函数的数学定义是
存信号ALE 在每个机器周期中两次有效一次在 S1P2 与 S2P1 期间另一次在 S4P2 与 S5P1期间 对于单周期指令当操作码被送入指令寄存器时便从 S1P2 开始执行指令如果是双字节单机器周期指令则在同一机器周期的 S4 期间读入第二个字节若是单字节单机器周期指令则在 S4 期间仍进行读但所读的这个字节操作码被忽略程序计数器也不加 1在 S6P2结束时完成指令操作图 17的 a 和 b
2 探讨了 ASP 技术的五个主要的内置对象和 ActiveX 服务器组件在学校新闻发布系统中的应用,并介绍了如何利用 ASP 技术向数据库添加、修改和删除数据。 3 重点讨论了如何利用数据库访问组件, ADO 技术实现新闻数据库与服务器的连接,并利用其属性和方法完成对新闻的访问。 4 详尽介绍了新闻发布系统的总体框架、工作流程和系统使用的主要技术。 全文概要 第一章
indow SW_HIDE。 SetDlgItemText IDC_EDIT3,亡羊哺狼。 SetDlgItemText IDC_EDIT4,1025。 CBitmap bitmap。 IDB_BITMAP1。 0,SS_BITMAP。 HBITMAP。 return TRUE。 // return TRUE unless you set the focus to a control