FrameSet框架下,repeater和aspnetpager一起使用的问题

hebaobao19880921 2011-08-18 08:58:45
点击aspnetpager分页的时候希望 只有repeater刷新.
页面刷新的时候 希望aspnetpager不刷新
怎么实现?现在的代码是这样的.

<asp:Repeater ID="RepeaterShow" runat="server" OnItemDataBound="RepeaterShow_ItemDataBound">
<HeaderTemplate>
<div style="overflow-x: auto; height: 600px;">
<table width="100%" class="tableselect" id="tableshow" align="center" border="1px"
style="text-align: center">
</HeaderTemplate>
<ItemTemplate>
<tr onmouseover="this.style.backgroundColor='#CCCCFF'" onmouseout="this.style.backgroundColor=''"
ondblclick="FN_UpdateFilePath(this,'',450,300)" value='<%#Eval("FileId") %>'>
<td width="5%">
<input id="item" type="checkbox" name="itemname" />
</td>
<td width="5%">
<%# Container.ItemIndex+1%>
</td>
<td name="td" width="15%">
<%#Eval("FileId") %>
</td>
<td width="20%">
<a value='<%#Eval("FilePath") %>' href='../FileOperation/DownFile.aspx?id=<%#Eval("FileId")%>'>
<%#Eval("FileNam")%></a>
</td>
<td width="10%">
<%#Eval("FileSize")%>
</td>
<td width="20%">
<%#Eval("Decription")%>
</td>
<td width="5%">
<%#DataBinder.Eval(Container.DataItem,"CreateOn","{0:d}") %>
</td>
<td width="5%">
<%#DataBinder.Eval(Container.DataItem, "ModefyOn", "{0:d}")%>
</td>
<td width="10%">
<img src="../img/winrar.gif" /><a value='<%#Eval("FilePath") %>' href='../FileOperation/DownFile.aspx?id=<%#Eval("FileId")%>'>下载</a>
<img src="../img/roledelete.gif" alt="删除该文件" />
<a id="deletefileid" value='<%#Eval("FileId") %>' onclick="FN_deletebyId(this)">删除</a>
<img src="../img/roleupdate.gif" alt="修改该文件" /><a id="updatefile" value='<%#Eval("FileId")%>'
onclick="FN_UpdateFilePath(this,'',450,300)">修改</a>
</td>
<td width="5%">
<input id="Hidden1" type="hidden" value='<%# Eval("FilePath") %>' />
<input id="Hidden2" type="hidden" value='<%# Eval("FolderId") %>' />
<input id="Hidden3" type="hidden" value='<%# Eval("CreateBy") %>' />
<input id="Hidden4" type="hidden" value='<%# Eval("ModefyBy") %>' />
<input id="Hidden5" type="hidden" value='<%# Eval("CreateOn") %>' />
<input id="Hidden6" type="hidden" value='<%# Eval("ModefyOn") %>' />
<input id="Hidden7" type="hidden" value='<%# Eval("FileId") %>' />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table> </div>
</FooterTemplate>
</asp:Repeater>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table width="100%" class="tableselect" id="table1" align="center" border="1px" style="text-align: center">
<tr class="title">
<th width="5%">
</th>
<th width="5%">
资源序号
</th>
<th width="15%">
资源编号
</th>
<th width="20%">
资源名称
</th>
<th width="10%">
资源大小
</th>
<th width="20%">
资源描述
</th>
<th width="5%">
创建时间
</th>
<th width="5%">
修改时间
</th>
<th width="10%">
相关操作
</th>
<th width="5%">
</th>
</tr>
</table>
<webdiyer:AspNetPager ID="pager1" runat="server" AlwaysShow="True" PageSize="30"
ShowBoxThreshold="10" ShowCustomInfoSection="Right" ShowNavigationToolTip="True"
CustomInfoHTML="共%PageCount%页,当前为第%CurrentPageIndex%页,每页%PageSize%条" ShowPageIndexBox="Always"
SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" LayoutType="Table"
CustomInfoSectionWidth="30%" PagingButtonStyle="pages" CurrentPageButtonPosition="Beginning"
OnPageChanging="pager1_PageChanging" UrlPaging="True" PageIndexBoxType="DropDownList">
</webdiyer:AspNetPager>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="pager1" EventName="PageChanging" />
<asp:AsyncPostBackTrigger ControlID="pager1" EventName="Load" />
</Triggers>
</asp:UpdatePanel>
</form>
...全文
70 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
haiziguo 2011-08-18
  • 打赏
  • 举报
回复
页面刷新的时候 希望aspnetpager不刷新 页面都刷新了 aspnetpager 不刷新有点奇怪啊
可以试试ajax控件
haiziguo 2011-08-18
  • 打赏
  • 举报
回复
页面刷新的时候 希望aspnetpager不刷新 页面都刷新了 aspnetpager 不刷新有点奇怪啊
可以试试ajax控件
haiziguo 2011-08-18
  • 打赏
  • 举报
回复
页面刷新的时候 希望aspnetpager不刷新 页面都刷新了 aspnetpager 不刷新有点奇怪啊
可以试试ajax控件
子夜__ 2011-08-18
  • 打赏
  • 举报
回复

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧