public int FarmerCount(string code) { DataTable dt = Farmer_DL.FarmerCount(code); DataRow dr = dt.Rows[0]; return(Convert.ToInt32(dr[0])); }