首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

UpdatePanel1 如何还会刷新

2012-02-07 
UpdatePanel1 怎么还会刷新UpdatePanel1 怎么还会刷新这怎么回事。。。asp:UpdatePanel IDUpdatePanel1 r

UpdatePanel1 怎么还会刷新
UpdatePanel1 怎么还会刷新
这怎么回事。。。
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
   
  <asp:DataList ID="DataList1" runat="server" OnDeleteCommand="DataList1_DeleteCommand" OnItemCreated="DataList1_ItemCreated" Width="100%">
  <ItemTemplate>
  <br /> 站点名称:<%#Eval("zdName") %> <br />
  <a href="Default2.aspx?id=<%#Eval("Id") %>">查看统计报表</a> | <a href="getCountVisitots2.aspx?zdId=<%#Eval("Id") %>">获取统计代码</a> | 参数设置 | 我要啦排名 | 站点初始化 | <asp:LinkButton ID="lbDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("Id") %>'>删除站点 </asp:LinkButton><br />
  &nbsp; &nbsp; &nbsp; &nbsp; 今日 <%#Eval("todayCount")%>IP /<%#Eval("todayCountPv")%>PV &nbsp; &nbsp; &nbsp; &nbsp; 昨日 <%#Eval("yesterdayCount")%>IP &nbsp; &nbsp; &nbsp; &nbsp;一周 <%#Eval("hebdomadCount")%>IP /<%#Eval("hebdomadCountPV") %>PV<br />
  </ItemTemplate>
  </asp:DataList>
  </ContentTemplate>
  </asp:UpdatePanel>

[解决办法]
你還沒設置Trigger呢。
[解决办法]

C# code
============页面上<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">                            <ContentTemplate>                                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>                            </ContentTemplate>                            <Triggers>                                <asp:AsyncPostBackTrigger ControlID="触发刷新的按钮id或其他" />                            </Triggers>                        </asp:UpdatePanel> 

热点排行