Hi,
this is the asp.net code
<asp:RadioButton ID="RadioButton1" GroupName="source" runat="server" AutoPostBack="True" />
UK
<br />
<asp:RadioButton ID="RadioButton2" GroupName="source" runat="server" AutoPostBack="True" />
Holiday
<br />
<asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label>
<br />
<asp:Label ID="Label2" runat="server" Text="Label2"></asp:Label>
and this is the c# code
if (RadioButton1.Checked = true)
{
Label2.Visible = false;
}
if (RadioButton1.Checked = true)
{
Label2.Visible = false;
}
What I want to do is that if the click Radiobutton 1 then only label1 should be visible and if I click radiobutton2 then only label2 should be visible.
Any help is much appreciated in advance.
Thanks,
R8VI
Start Free Trial