摘要:
首先要对Golbal.asax要有一定的了解,先添加一个Golbal.asax,然后再编写其代码1.编写Application_Start事件:{//在应用程序启动时应用该代码 OleDbConnection con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/db1.mdb"); ... 阅读全文
摘要:
首先把GridView的属性AutoGeneratEditButton的属性设置为true,然后给GRIDVIEW添加RowUpdating事件,其所写代码如下:string 房屋编号 = this.GridView1.DataKeys[e.RowIndex][0].ToString(); string 楼宇名称 = ((TextBox)this.GridView1.Rows[e.RowIndex... 阅读全文