|
<script language="vb" runat="server">
Sub Page_Load()
If Page.IsPostBack Then
Select Case(Destination.SelectedItem.Value)
Case "Barcelona":
Message.Text = "Barcelona"
Case "Oslo":
Message.Text = "Oslo"
Case "Lisbon":
Message.Text = "Lisbon"
Case else
Message.Text = "you did not select a destination we travel to"
End Select
End If
End Sub
</script>
<html>
<head></head>
<body>
<form runat="server">
Select your choice of destination:
<br><br>
<asp:radiobuttonlist id="destination" runat="server">
<asp:listitem>Barcelona</asp:listitem>
<asp:listitem>Oslo</asp:listitem>
<asp:listitem>Lisbon</asp:listitem>
</asp:radiobuttonlist>
<br><br>
<input type="submit" value="Submit Choice">
<br><br>
<asp:label id="message" runat="server"/>
</form>
</body>
</html>
|
Tags: Asp Control, ASP.Net, Code, Radio Button List, Radio Button List laquo Asp Control laquo ASPNet, radiobuttonlist VBnet, Select case for asp
Posted in Uncategorized |
This entry was posted
on Saturday, July 4th, 2009 at 1:57 am and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.