protected void GvRegister_RowCommand(object sender, GridViewCommandEventArgs e) { //修改功能 if (e.CommandName == "Upd") { string rid = e.CommandArgument.ToString();//获取命令参数 Response.Redirect("~/FaxeList/RegisterTB.aspx?Rid=" + rid); } //编辑功能 else if (e.CommandName == "Del") { string rid = e.CommandArgument.ToString();//获取命令参数 int cnt = RegMan.DeleteRegisterTB(rid); } //刷新数据表 allInfo = RegMan.GetAllRegisterTB(); anpPage.RecordCount = allInfo.Count; DisPlay(); }