ComboBox(HTML Input Radio Button): get selected value (VB.net) : ComboBox « HTML Control « ASP.Net






ComboBox(HTML Input Radio Button): get selected value (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub SubmitBtn_Click(Source As Object, E as EventArgs)
    MyMessage.InnerHTML = "You selected as your " _
        & "favorite meal: " & Meal.Value
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Allowing Input through the HTMLInputRadioButton Control</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Span id="MyMessage" runat=server>
</Span>    
<BR>
Which is your favorite meal?  
<BR>
<select
    id="meal"
    runat="Server"
    multiple="False"
    size=1
>
    <option>Breakfast</option>
    <option>Lunch</option>
    <option>Dinner</option>
</select>
<BR>
<button 
    id="Button1"
    runat="server"
    onserverclick="SubmitBtn_Click" 
>
Submit
</button>
</Form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.HTML Control: get value from select (ComboBox) (C#)