public string GetVisitorsLogOut(string id) { string ddate = DateTime.Now.ToString(); clsSQLCommond.Update("update Visitors set DDate2='" + ddate + "',II2='3' where iiID=" + id); return(ddate); }
public bool Delete(string vchrUid) { sSQL = "delete from " + tablename + " where vchrUid='" + vchrUid + "' "; bool b = clsSQLCommond.Update(sSQL); return(b); }
public bool Delete(string iID) { sSQL = "delete from " + tablename + " where iID='" + iID + "'"; bool b = clsSQLCommond.Update(sSQL); return(b); }
protected void ToDel(object sender, EventArgs e) { int iRow = ASPxGridView1.FocusedRowIndex; string iID = ASPxGridView1.GetRowValues(iRow, "iID").ToString(); string iType = ASPxGridView1.GetRowValues(iRow, "iType").ToString(); sSQL = "delete from _LookUpDate where iID='" + iID + "' and iType='" + iType + "'"; clsSQLCommond.Update(sSQL); ASPxGridView1.DataBind(); }