用的是三层结构。就是一个简单的显示列表页。
====================================================================================================
。CS      if (!IsPostBack)
        {
             RS_BYLAW_BLL BYLAW = new  RS_BYLAW_BLL();
             this.GridView1.DataSource = BYLAW.GetRS_BYLAWAll();
             GridView1.DataBind();        }
====================================================================================================
.DAL  略写   
 public List<RS_BYLAW> GetRS_BYLAWAll()
        {
            List<RS_BYLAW> rS_BYLAWList = new List<RS_BYLAW>();            string cmdText = "select * from dbo.RS_BYLAW";
            SqlCommand command = new SqlCommand(cmdText);
            using (SqlDataReader dr = SQLDBHelper.ExecuteReader(SQLDBHelper.ConnectionString, command))  -----就说这句话有问题。 DBUtility.SQLDBHelper”的类型初始值设定项引发异常。
  {
                while (dr.Read())
                {
                    RS_BYLAW rS_BYLAW = new RS_BYLAW();
                    
==============================================================================================请指点。。
-----------------------------------------------------------------------------------------------------