public static List Title()
{
List items = new List();
items.Add(new SelectListItem { Text = "MR", Value = "" });
items.Add(new SelectListItem { Text = "MRS", Value = "" });
return items;
}
Please in the above code. Is there any possible way to automatically populate the value with the the vallue of the Text. Thanks
Please in the above code. Is there any possible way to automatically populate the value with the the vallue of the Text. Thanks


VulpesRank #55 · 29.2K reputationPosted Apr 10, 2014, 2:12 AM EDT
// ...
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 10, 2014, 1:41 AM EDT
private void Form1_Load(object sender, EventArgs e)
{
List<String> vegetables = new List<String>();
vegetables.Add("tomato");
vegetables.Add("carrot");
vegetables.Add("celery");
vegetables.Add("potato");
textBox1.Text = displayMembers(vegetables);
}
public string displayMembers(List<String> vegetables)
{
foreach (String s in vegetables)
{
}
return null;
}
VulpesRank #55 · 29.2K reputationPosted Apr 10, 2014, 1:42 AM EDT
Christian NwambaRank #8,005 · 230 reputationPosted Apr 10, 2014, 1:52 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 10, 2014, 2:05 AM EDT
hi,
how are you fetch these 300 records from database or any static collection?
Christian NwambaRank #8,005 · 230 reputationPosted Apr 10, 2014, 2:41 AM EDT