It appears to me that the OP is trying to evaluate the Checked
property of different RadioButton controls.

On Dec 14, 12:46 pm, "Samridhi Bhutani" <[email protected]> wrote:
> try this
>
> <asp:RadioButtonList ID="rd1" runat="server"
> OnSelectedIndexChanged="rd1_selectedIndexchanged" AutoPostBack="true">
>     <asp:ListItem Text="a" Value="a"></asp:ListItem>
>     <asp:ListItem Text="b" Value="b"></asp:ListItem>
>     <asp:ListItem Text="c" Value="c"></asp:ListItem>
>     </asp:RadioButtonList>
>
> code :
> protected void Set()
>     {
>         string livingArea = "";
>         // Setup Living Area
>         switch (rd1.SelectedItem.Text)
>         {
>             case "a":
>                 livingArea = "Rental Properties Listing";
>                 break;
>             case "b":
>                 livingArea = "Home Property Listing";
>                 break;
>             case "c":
>                 livingArea = "Apartment Property Listing";
>                 break;
>             default:
>                 livingArea = "";
>                 break;
>         }
>         Response.Write(livingArea);
>     }
>
>
>
> On Sat, Dec 13, 2008 at 2:33 AM, Cerebrus <[email protected]> wrote:
>
> > On a side note, if you were to use the RadioButtonList control (quirks
> > notwithstanding), you would not have to do this kind of checking.- Hide 
> > quoted text -
>
> - Show quoted text -

Reply via email to