能否在不刷新的情况下实现这样的功能
1.test.aspx
<asp:RadioButtonList id="RadioButtonList1" runat="server" RepeatDirection="Horizontal" AutoPostBack="True">
<asp:ListItem Value="否" Selected="True">否</asp:ListItem>
<asp:ListItem Value="是">是</asp:ListItem>
</asp:RadioButtonList>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
2.test.aspx.cs
private void Page_Load(object sender, System.EventArgs e)
{
TextBox1.Visible=false;
}
private void RadioButtonList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
string str=RadioButtonList1.SelectedValue;
if (str=="是")
TextBox1.Visible=true;
}