August 2017
Beginner
566 pages
12h 34m
English
Now we will display some information about each choice. Thus, if you select Pears, it will display some information, and so on.
Unload the page by clicking the brown (square) stop button, and switch over into Default.aspx.cs, which should look like this:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { }
If you don't have that, go back into Default.aspx, then left double-click on the drop-down list, and it will generate this stub in Default.aspx.cs, right beneath the previous event handler stub.
Here is where we are going to process information; so you will enter the following beneath the first closed curly brace:
switch (DropDownList1.SelectedValue){Read now
Unlock full access