I am trying to fetch the selected value of the listbox. When I actually try LstGroup1.SelectedItem I get the value { BoothID = \"4\", BoothName = \"HP\" }
LstGroup1.SelectedItem
{ BoothID = \"4\", BoothName = \"HP\" }
public List BoothsInGroup1 { get; set; } BoothsInGroup1 = new List(); BoothsInGroup1.Add(new { BoothID = da["BoothID"].ToString(), BoothName = da["BoothName"].ToString() }); var Booth = (LstGroup1.SelectedItem); var output = Booth.BoothID;