Hi Guys,
I have one dropdown and I need to display data in dropdown as comma seprated like a,b,c
Here is my code:
rddlMuster.DataTextField = "ZoneName";
rddlMuster.DataValueField = "ZoneID";
rddlMuster.DataSource = objUtilsDAO.GetZonesByYardID(lstYards.FirstOrDefault().YardID).Where(zm => zm.IsCS == false && zm.ZoneType == (int)Enums.ZoneType.Mustering_Zone).OrderBy(zm => zm.ZoneName);
rddlMuster.DataBind();
Can anyone please help me to get comma seprated value in dropdown while working with linq in asp.net?


Sandeep KumarRank #480 · 5.2K reputationPosted Jun 26, 2018, 7:35 AM EDT
Hiten PandyaRank #1,237 · 1.4K reputationPosted Jun 26, 2018, 6:14 AM EDT
1. separator means with what sign you want separation
2. array of object,array of string,IEnumerable array of string
3. startindex
4. count
Sandeep KumarRank #480 · 5.2K reputationPosted Jun 26, 2018, 6:19 AM EDT
Hiten PandyaRank #1,237 · 1.4K reputationPosted Jun 26, 2018, 6:39 AM EDT
Sandeep KumarRank #480 · 5.2K reputationPosted Jun 28, 2018, 2:31 AM EDT