public string BindLeftBrandProduct(string productid) { string strid = string.Empty; productManager objprodu = new productManager(); DataTable dt = new DataTable(); try { objprodu.productId = Convert.ToInt32(productid); dt = objprodu.SelectProductBrand(); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { if (i == 0) { strid = dt.Rows[i]["barndid"].ToString(); } else { strid += "," + dt.Rows[i]["barndid"].ToString(); } } return(strid); } else { return(strid); } } catch (Exception ex) { throw ex; } finally { dt.Dispose(); objprodu = null; } }