select case statement for asp:radiobuttonlist (C#) : Radio Button List « Asp Control « ASP.Net

select case statement for asp:radiobuttonlist (C#)

<script language="C#" runat="server">
void Page_Load()
  if (Page.IsPostBack) {
      case "Barcelona":
        Message.Text = "You selected Spain's lively Catalan city";
      case "Oslo":
        Message.Text = "Experience the majesty of Norway's capital city";
      case "Lisbon": 
        Message.Text = "Portugal's famous seaport and cultural hub";
        Message.Text = "you did not select a destination we travel to";

  <form runat="server">
  Select your choice of destination:
  <asp:radiobuttonlist id="Destination" runat="server">
  <input type="submit" value="Submit Choice">
  <asp:label id="Message" runat="server"/>


Related examples in the same category

1.Get selected item, value and text from asp:RadioButtonList (
2.On radiobutton list changed (
3.Setting and Retrieving the Selected Item in a RadioButton Control Group (
4.Set asp:RadioButtonList Repeat Layout (
5.Select case for asp:radiobuttonlist (
6.Get selected item value from asp:radiobuttonlist (
7.Get selected radio button from radio button list (C#)
8.Get selected value from asp:radiobuttonlist (C#)
9.Add ListItem to RadioButtonList
10.RadioButtonList Control