<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" >
<asp:ListItem Selected="True">女生</asp:ListItem>
<asp:ListItem>男生</asp:ListItem>
</asp:RadioButtonList> <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<Triggers><asp:AsyncPostBackTrigger ControlID="RadioButtonList1"/> </Triggers>
<ContentTemplate>
<div class="as_h">
<div class="as_h_q">个人描述:</div><div class="as_h_hh"><% =miaoshustring %></div>
</div>
</ContentTemplate>
</asp:UpdatePanel> protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Lcb.Js.Alert(UpdatePanel1, "进入描述选择");
//miaoshu();
}
为什么选择了以后只执行一次我再选回来。。就不执行了呢?????
AutoPostBack="True"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" >
<asp:ListItem Selected="True">女生</asp:ListItem>
<asp:ListItem>男生</asp:ListItem>
</asp:RadioButtonList> <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<Triggers><asp:AsyncPostBackTrigger ControlID="RadioButtonList1"/> </Triggers>
<ContentTemplate>
<div class="as_h">
<div class="as_h_q">个人描述:</div><div class="as_h_hh"><% =miaoshustring %></div>
</div>
</ContentTemplate>
</asp:UpdatePanel> protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Lcb.Js.Alert(UpdatePanel1, "进入描述选择");
//miaoshu();
}
为什么选择了以后只执行一次我再选回来。。就不执行了呢?????
</asp:ScriptManager>这个给加上。
<ContentTemplate>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" >
<asp:ListItem Selected="True">女生</asp:ListItem>
<asp:ListItem>男生</asp:ListItem>
</asp:RadioButtonList> <div class="as_h">
<div class="as_h_q">个人描述:</div><div class="as_h_hh"><% =miaoshustring %></div>
</div>
</ContentTemplate>
</asp:UpdatePanel> protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
Lcb.Js.Alert(UpdatePanel1, "进入描述选择");
//miaoshu();
}
写到里面就没问题了。
这到底是怎么回事啊??????????????????????????
没有异步响应事件啊。