Thanks Pavan Kumar Mark Answer if this fits the need
<asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" Text="Display False" oncheckedchanged="RadioButton1_CheckedChanged" GroupName="R1"/> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:DropDownList ID="DropDownList1" runat="server"> </asp:DropDownList> <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" Text="Display True" oncheckedchanged="RadioButton2_CheckedChanged" GroupName="R1" />
protected void RadioButton1_CheckedChanged(object sender, EventArgs e) { TextBox1.Visible=false; DropDownList1.Visible=false; } protected void RadioButton2_CheckedChanged(object sender, EventArgs e) { TextBox1.Visible = true; DropDownList1.Visible = true; }
@Shipra - S.M. Techie
Login to post response