Karthik_Mahalingam
обратитесь к этому
<asp:RadioButtonList ID="rbcolor" AutoPostBack="true" runat="server" OnSelectedIndexChanged="rbcolor_SelectedIndexChanged" >
<asp:ListItem Text="Red" />
<asp:ListItem Text="Green" />
<asp:ListItem Text="Blue" />
</asp:RadioButtonList>
<asp:Label Text="My Label" ID="lblColor" runat="server" />
Protected Sub rbcolor_SelectedIndexChanged(sender As Object, e As EventArgs) Handles rbcolor.SelectedIndexChanged
If (rbcolor.SelectedValue = "Red") Then
lblColor.ForeColor = System.Drawing.Color.Red
ElseIf (rbcolor.SelectedValue = "Green") Then
lblColor.ForeColor = System.Drawing.Color.Green
ElseIf (rbcolor.SelectedValue = "Blue") Then
lblColor.ForeColor = System.Drawing.Color.Blue
End If
End Sub