private string getNameOfCode(int code, int type) { DataTable dt = commonBSN.GetCodingByTypeId(type); DataRow[] dr = dt.Select("id=" + code); if (dr.Length == 1) { return(dr[0]["namecoding"].ToString()); } return(""); }