飞凡团队

2010年4月7日

使用GridView管理类

摘要: 生成grid_RowEditing事件编辑protected void grid_RowEditing(object sender,GridViewEditEventArgs e){grid.EditIndex = e.NewEditIndex;grid.DataSource = Catalog.Get();grid.DataBind();}退出编辑protected void grid_RowC... 阅读全文

posted @ 2010-04-07 10:24 飞凡团队 阅读(985) 评论(1) 推荐(0)
类管理-1

摘要: sql语句:insert into table () values ()update table set a= @a,b= @b where ID = @IDdelete from table where Id = @Id执行命令public static int ExecuteNonQuerty(DbCommand command){int a = -1;try{command.connecti... 阅读全文

posted @ 2010-04-07 09:59 飞凡团队 阅读(138) 评论(0) 推荐(0)