实验项目名称 Asp.net数据库编程 一、实验目的和要求 1、掌握.net中ADO.net的原理 2、掌握连接SQL SERVER数据库的方法 3、掌握Sqldatacommand,Sqldataadapter 对象访问数据库的方法。 4、掌握记录查询,更新方法。 二、实验内容 1、教材P328,实验10.6。 2、完善上次实验所做的母版页,为登录按钮添加事件处理代码,完成登录功能;为注册按钮添加一个新网页,完成注册过程。 提示: (1)加载 using System.Data; using System.Data.SqlClient; (2)连接 SqlConnection mycon = new SqlConnection(constr); mycon.Open(); (3)查询 SqlCommand mycommand = new SqlCommand(sql语句, mycon); (4)读取 SqlDataReader myread = mycom.ExecuteReader(); (5) 数据适配器方法 SqlDataAdapter myadapter = new SqlDataAdapter(\语句\DataSet myset = new DataSet(); myadapter.Fill(myset, \自定义数据表名\ 三、实验步骤(此处粘贴所建网页的html编码和C#编码,只粘贴与本实验有关的) 1、 <%@ Page Language=\Inherits=\