日期:2014-05-16  浏览次数:20513 次

为什么updatepanel里的表格不起作用
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
                  <ContentTemplate>
                      <asp:Repeater ID="Repeater1" runat="server">
                          <ItemTemplate>

                              <tr class='b'>
                            <td height='25' bgcolor='#008000'></td>
                            <td ><%# Eval("js_date") %></td>
                            <td ><%# Eval("model") %>-<%# Eval("color") %></td>
                            <td align='right'><%# Eval("project_qty") %>&nbsp;</td>
                            <td >0</td>
                            <td ></td>


                      </tr>
                          </ItemTemplate>
                      </asp:Repeater>
                  </ContentTemplate>
                  <Triggers>
                      <asp:AsyncPostBackTrigger ControlID="search" EventName="click" />
                  </Triggers>
              </asp:UpdatePanel>

 为什么updatepanel里的表格不起作用
------解决方案--------------------
  <asp:AsyncPostBackTrigger ControlID="search" EventName="click" />
这个是这里的问题,改成PostBackTrigger试试