日期:2014-05-17  浏览次数:20492 次

UpdatePanel控件与Repeater中子控件使用问题
我在UpdatePanel中放了一个Repeater
在Repeater中放了一个RadioButton
代码如下:

<asp:ScriptManager ID="ScriptManager1" runat=server>
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
   <asp:Repeater id="Repeater1" runat=server >
       <HeaderTemplate>
       </HeaderTemplate>
       <ItemTemplate>
                   <div class="prd_price_block">
                                  <div class="prd_price_tt font_color8"><%#Eval("smallTypeName") %><asp:Label ID="lbid" runat="server" Visible="false" Text='<%#Eval("id") %>'></asp:Label></div>
                                  <div class="prd_price_txt">
                                   <%#Eval("detail") %>
                                  </div>
                                  <div class="prd_price">¥<%#Eval("Price") %></div>
                                  <div class="prd_style_choose">
                                    <label for="radio2" class="prd_style_choose">
                                        <asp:RadioButton ID="ra1" runat="server" OnCheckedChanged="ra1_CheckedChanged" AutoPostBack="true" />
                                      选择</label>
                                  </div>
                                </div>
       </ItemTemplate>
       <FooterTemplat