This example is from the linqpad help file.
var yourChoice = new DumpContainer();
string[] colors = { "Red", "Green", "Violet", "Blue", "Orange", "Yellow" };
// Dropdown-style select box:
var selectBox = new SelectBox (colors, 0,
sb => yourChoice.Content = sb.SelectedOption
).Dump ("Choose a color");
yourChoice.Dump ("Your choice(s)");
Question1: I can get the selected value using yourChoice.Dump(), but how can I get the selected value as a string? in the real case scenario the dropdown is a list of customers, after selecting the customer I need to pass the customer name to other methods.
Question2: is there anyway I can set both a submit value and text in the SelectBox, so that the submitted value is different than the displayed value