I need to get a string seprated by comma from a list item.
List<Data.ProductDTO> ProductsDTO = new List<Data.ProductDTO>();
ProductsDTO =ProductsDAL.GetProducts(Productid);
Foreach (var product in ProductsDTO )
{
string s = product.ProductName;
}
I tried something like this but it din't work
string s = string.Empty;
s = string.Join(",", ProductsDTO.ToArray());
TextBox2.Text = s;
...
Go to the complete details ...