I have a radio button list and I need to display a lable message when ever user select "A"
i wrote some code in c# but its not working can sombody help me.

<td   align="left"  > 
          <asp:RadioButtonList ID="RBl1" runat="server" AutoPostBack="True"                               
                                CellPadding="2" CellSpacing="5" 
              onselectedindexchanged="RBl1_SelectedIndexChanged">
            <asp:ListItem  Value="G" Selected="True" >Regular Grants</asp:ListItem>
          <asp:ListItem Value ="A">ARRA Grants</asp:ListItem>
            <asp:ListItem Value ="C">Contract</asp:ListItem>
            </asp:RadioButtonList>                 
        
         </td>
protected void RBl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (RBl1.SelectedValue = "A")
            {
              mesg.text = "ARRA FUNDS NOT AVAILABLE" ;
            }
            else
                lblmsg.Text="";
           
                MakeSQL(); 
           
        }

Hello, pt0909.
To compare values you should use "==".

if (RBl1.SelectedValue == "A")

.

Also the property of the label, which you trying to access here:

mesg.text

should start with the capital letter:

mesg.Text

C# is case-sensitive.

This question has already been answered. Start a new discussion instead.