<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();
        }
为什么选择了以后只执行一次我再选回来。。就不执行了呢?????

解决方案 »

  1.   

    方法执行完。。加个updatepanel的ID.Update();
      

  2.   

    记得貌似还得要一个什么东西加在UpdatePanel标签上面
      

  3.   

    <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>这个给加上。
      

  4.   

      <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
      <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();
      }
    写到里面就没问题了。
    这到底是怎么回事啊??????????????????????????
      

  5.   

    <Triggers><asp:AsyncPostBackTrigger ControlID="RadioButtonList1"/> </Triggers>
    没有异步响应事件啊。
      

  6.   

    附加上  EventName="SelectedIndexChanged" 
      

  7.   

     = = 我已经疯了有QQ在线的兄弟没??给我远程弄一下。。不胜感激QQ 6542688.