内蒙古信息工程系学实训报告系部:信息技术系课程名称:网站网页制作专业班级:14计算机网络技术一班姓名:xxx任课老师:xxx实验实训项目名称网站制作实验类型验证型实验室思科网络实验室实验时间[实验方案设计(步骤)]实验目的:1•熟练掌握SQL语句的编写。。实验步骤:1•登录页面学生管理系统,壑囊 ti 同户洼舟息记奇•吗主要代码:protectedvoidButton1_Click(objectsender. EventArgse){stringusername=;stringpassword=;stringconnStr= "server=(local);uid=sa;pwd=123456;database=StudentManager" ;SqlConnectionconn=newSqlConnection(connStr);manobmd=mand"select*fromUserInfowhereusername="' +username+"'andpassword='"+password+ ,conn);();SqlDataReaderreader=();//记?录?集一if(()){( "");}="用?户§名?或。者?密U码?错洙?误6!?!?";}();}2•主页面+用户信息管理页面学生管理系统主窗口欢迎进入学生请理系统用户信息管理农红厲层豪试*世ft息它唏爭至也理瀑加拿宣灰績楼:Ft宇Jt或才去询-東構速工4ItI甘強 JSF圭1 9412 fldiiiiiI13456MM曲左侧主要运用了TreeView控件,然后用户信息运用了GridView控件,链接数据源,在页面中展示用户信息,主要代码:<asp:GridViewID="GridView1"runat="server" AllowPaging="True"AllowSorting="True"AutoGenerateColumns="False"DataKeyNames="Userid"DataSourcelD="SqlDataSource1"style="font-family :楷?体?;font-size:medium"Width="550px"BackColor="#DEBA84"BorderColor="#DEBA84"BorderStyle="None"BorderWidth="1px"CellPadding="3"CellSpacing="2"><Columns><asp:BoundFieldDataField="Userid" HeaderText="序o号?"ReadOnl尸"True"SortExpression="Userid"/><asp:BoundFieldDataField="UserName"HeaderText="用?户§名?"SortExpression="UserName"/><asp:BoundFieldDataField="Password"HeaderText="密u码?"SortExpression="Password"/><asp:BoundFieldDataField="Email"HeaderText="电?子哩?邮?件t"SortExpression="Email"/><mandFieldShowDeleteButton="True"ShowEditButton="True"/></Columns>vFooterStyleBackColor="#F7DFB5"ForeColor="#8C4510"/>vHeaderStyleBackColor="#A55129"Font-Bold="True"ForeColor="White"/>vPagerStyleForeColor="#8C4510"HorizontalAlign ="Center"/>vRowStyleBackColor="#FFF7E7"ForeColor="#8C4510"/>vSelectedRowStyleBackColor="#738A9C"Font-Bold="True"ForeColor="White"/>vSortedAscendingCellStyle BackColor="#FFF1D4"/>vSortedAscendingHeaderStyle BackColor="#B95C30"/>vSortedDescendingCellStyleBackColor="#F1E
学生管理系统(界面 源代码)培训讲学 来自淘豆网m.daumloan.com转载请标明出处.