C#: How to get the value or text value of the select drop-down list

Such as the following code

to obtain the value

The HTML code

<body>
    <form id="form1" runat="server">
        <div>
            <div>
            	<select id="select1" runat="server">
                	<option value ="video1" runat="server">video 1</option>
                	<option value ="video2" runat="server">video 2</option>
                	<option value="video3" runat="server">video 3</option>
            	</select>
            	<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="start" />
            </div>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </div>
    </form>
</body>

C # code

protected void Button1_Click(object sender, EventArgs e)
        {
        	String str = select1.Items[select1.SelectedIndex].Value;//Get the value of the drop-down list
        	Label1.Text = str;	// Display the values in the list through the Lable component
        }

String STR = select1.items [select1.selecteDindex].Value; in the select1 for HTML code to the select components id

get Text

Text>e> v> String STR = sel>.items [select1.selecteDindex].Value; in the Value instead. The Text

Read More: