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

VulpesPosted Apr 10, 2014, 6:12 AM
// ...
Christian NwambaPosted Apr 10, 2014, 6:41 AM
Jignesh TrivediPosted Apr 10, 2014, 6:05 AM
hi,
how are you fetch these 300 records from database or any static collection?
Christian NwambaPosted Apr 10, 2014, 5:52 AM
VulpesPosted Apr 10, 2014, 5:42 AM
Munesh SharmaPosted Apr 10, 2014, 5:41 AM
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;
}