Posted on: 5/12/2013 10:21:37 PM | Views : 215

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 ...