protected void gridViewSupportOnline_RowDeleting(object sender, GridViewDeleteEventArgs e) { try { GridViewRow row = gridViewSupportOnline.Rows[e.RowIndex]; Int32 NickID = Convert.ToInt32(((Label)row.Cells[0].FindControl("lblNickID")).Text); OtherFunctions obj = new OtherFunctions(); obj.DeleteSupportOnline(NickID); LoadSupportOnlineList(); } catch { } }
protected void btnDelete_Click(object sender, EventArgs e) { try { Int32 NickID = Globals.GetIntFromQueryString("NickID"); OtherFunctions obj = new OtherFunctions(); int kq = -1; kq = obj.DeleteSupportOnline(NickID); ShowMessage(kq, "xóa"); LoadSupportOnlineList(); } catch { } }