protected void btnUpdate_Click(object sender, EventArgs e) { DBOps db = new DBOps(); string _key = txtUpdateLab.Text; string _value = txtUpdateBuilding.Text; string room = txtUpdateRoom.Text; int retval = db.UpdateLabsTable(_key, _value, room); lblUpdateInfo.Text = retval.ToString() + " row updated"; lblUpdateInfo.DataBind(); RefreshTable(); }
protected int gvitem_RowUpdatingcustom(string lab, string building, string roomnumber) { DBOps db = new DBOps(); string _key = lab; string _value = building; string room = roomnumber; int retval = db.UpdateLabsTable(_key, _value, room); lblErr.Text = retval.ToString() + " row updated"; lblErr.DataBind(); return(retval); }