欢迎来到天天文库
浏览记录
ID:38785525
大小:951.00 KB
页数:16页
时间:2019-06-19
《学生管理系统(界面+源代码)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、内蒙古信息工程系学实训报告系部:信息技术系课程名称:网站网页制作专业班级:14计算机网络技术一班姓名:xxx任课老师:xxx实验实训项目名称网站制作实验类型验证型实验室思科网络实验室实验时间[实验方案设计(步骤)]实验目的:1.熟练掌握SQL语句的编写。2.掌握使用VS2010对网页的设计。实验步骤:1.登录页面主要代码:protectedvoidButton1_Click(objectsender,EventArgse){stringusername=TextBox1.Text;stringpassword=TextBox2.Text;stringcon
2、nStr="server=(local);uid=sa;pwd=123456;database=StudentManager";SqlConnectionconn=newSqlConnection(connStr);SqlCommandcmd=newSqlCommand("select*fromUserInfowhereusername='"+username+"'andpassword='"+password+"'",conn);conn.Open();SqlDataReaderreader=cmd.ExecuteReader();//记?录?集ˉif(
3、reader.Read()){Response.Redirect("main.aspx");}else{Label1.Text="用?户§名?或ò者?密ü码?错洙?误ó!?!?";}conn.Close();}1.主页面+用户信息管理页面左侧主要运用了TreeView控件,然后用户信息运用了GridView控件,链接数据源,在页面中展示用户信息,主要代码:4、se"DataKeyNames="Userid"DataSourceID="SqlDataSource1"style="font-family:楷?体?;font-size:medium"Width="550px"BackColor="#DEBA84"BorderColor="#DEBA84"BorderStyle="None"BorderWidth="1px"CellPadding="3"CellSpacing="2">5、"True"SortExpression="Userid"/>6、dFieldShowDeleteButton="True"ShowEditButton="True"/>7、0"/><8、br/>
4、se"DataKeyNames="Userid"DataSourceID="SqlDataSource1"style="font-family:楷?体?;font-size:medium"Width="550px"BackColor="#DEBA84"BorderColor="#DEBA84"BorderStyle="None"BorderWidth="1px"CellPadding="3"CellSpacing="2">5、"True"SortExpression="Userid"/>6、dFieldShowDeleteButton="True"ShowEditButton="True"/>7、0"/><8、br/>
5、"True"SortExpression="Userid"/>6、dFieldShowDeleteButton="True"ShowEditButton="True"/>
6、dFieldShowDeleteButton="True"ShowEditButton="True"/>
7、0"/><
8、br/>
此文档下载收益归作者所有