<%@ Page Language="C#" Inherits="HawhawPage" %>
<%@ Register Assembly="Hawhaw" Namespace="Hawhaw" TagPrefix="Haw" %>

<!--
        HAWHAW example for usage of radio buttons
        Norbert Huffschmid
        20.3.2009
-->

<script runat="server">

    protected void Page_Load()
    {
        if (this.IsPostBack)
        {
            inputForm.Visible = false;

            Excuse.Text ="Sorry,";
            Info.Text ="All flights to " + dest.Value + " are totally booked out!";
        }
    }
    
</script>

<Haw:Deck runat="server" Title="Example 3" Simulator="Skin">

    <Haw:Form runat="server" ID="inputForm">
        <Haw:Label runat="server" Text="Please select your flight destination:"></Haw:Label>
        <Haw:RadioButtonList runat="server" ID="dest">
            <Haw:ListItem runat="server" Text="Helsinki" Value="Helsinki" />
            <Haw:ListItem runat="server" Text="Munich" Value="Munich" Selected="True" />
            <Haw:ListItem runat="server" Text="Paris" Value="Paris" />
            <Haw:ListItem runat="server" Text="Stockholm" Value="Stockholm" />
        </Haw:RadioButtonList>
        <Haw:Button runat="server" Text="Submit" />
    </Haw:Form>

    <!-- This label is filled programmatically after postback -->
    <Haw:Label runat="server" Text="" ID="Excuse" Big="True" Italic="True" Bold="True" />
    <Haw:Label runat="server" Text="" ID="Info" Italic="True" />

</Haw:Deck>