当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <asp:UpdatePanel runat= "server" >
<ContentTemplate>
<%--数据源--%>
<asp:AccessDataSource ID= "AccessDataSource1" runat= "server" DataFile= "C:\storage\users.accdb"
SelectCommand= "SELECT [userName], [blogTitle], [blogTime], [blogUrl],[statis] FROM [blog] ORDER BY [blogTime] DESC" ></asp:AccessDataSource>
<asp:ListView ID= "newBlogItems" runat= "server" DataSourceID= "AccessDataSource1" ViewStateMode= "Disabled" >
<ItemTemplate>
<li class= "newBlogItem" >
此处略去1000字
</li>
</ItemTemplate>
</asp:ListView>
<asp:DataPager ID= "DataPager1" runat= "server" PageSize= "15" PagedControlID= "newBlogItems" ViewStateMode= "Disabled" >
<Fields>
<asp:NextPreviousPagerField ButtonType= "Link" ShowFirstPageButton= "True" ShowNextPageButton= "False" ShowPreviousPageButton= "False" />
<asp:NumericPagerField />
<asp:NextPreviousPagerField ButtonType= "Link" ShowLastPageButton= "True" ShowNextPageButton= "False" ShowPreviousPageButton= "False" />
</Fields>
</asp:DataPager>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID= "DataPager1" />
</Triggers>
</asp:UpdatePanel>
|
以上就是详解ASP.NET使用ajax实现分页局部刷新页面功能的代码实例的详细内容!
返回前面的内容
相关阅读 >>
asp.net中md5加密码的代码详解
asp.net部署到iis常见问题的解决方法_实用技巧
asp.net使用entityframeworkcore codefrist
asp.net之actionfilter过滤器
asp.net中有关config文件的读写功能讲解
asp.net异步触发用法(ajax)
使用asp.net mvc使用jsonresult返回json数据实例详解
asp.net完成文件上传的代码教程
asp.net中healthmonitor属性的用法教程
asp.net core实例详解二(环境设置)
更多相关阅读请进入《asp.net》频道 >>
清华大学出版社
作者:[美]克里斯琴·内格尔(Christian Nagel)著。出版时间:2019年3月。
转载请注明出处:木庄网络博客 » 详解ASP.NET使用ajax实现分页局部刷新页面功能的代码实例