问题标签 [datapager]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
289 浏览

asp.net - 在 asp.net 中使用 datapager 几乎消耗了 SQL 服务器和 IIS 服务器之间的全部带宽,我该怎么办?

我有一个包含 40000 多条记录的表,该表的总大小约为 50Mb。我有一个asp.net 网站,我在其中使用了数据分页器和列表视图。在每一页中,我只显示 10 条记录。

每当我单击数据分页器上的下一个/上一个按钮时,我可以看到 SQL Server 中的整个数据表已上传到 IIS 服务器(使用性能监视器)

我怎样才能防止这种情况?这是否意味着 ms datapager 不实用?有没有其他选择?或者这个问题有什么解决办法吗?

0 投票
1 回答
329 浏览

silverlight - Silverlight 数据分页器未触发加载事件

这是我的问题:

我有一个绑定到对象集合的数据网格。一列只包含一个 ID,我需要将此 ID 转换为与之关联的用户名。在数据网格中,我有一个包含文本块的模板列。该文本块有一个加载的事件,然后将获取 ID,查找用户,并将文本块文本设置为用户名。

一切都没有数据分页器,但只要我添加一个,它只会触发第一页的加载事件。之后的每一页都将只包含第一页的结果。我怎样才能让它工作。我什至在正确的轨道上吗?有没有更好的方法在数据网格中查找 ID?

0 投票
3 回答
1996 浏览

jquery - 分页后jQuery代码不起作用?

我在包含列表视图和数据分页器的内容页面中编写了以下代码

这很好用..但是当我进行分页时,编写的代码不起作用。

我可以看到在 Visual Studio 中创建了一个文件“Jscript-window 脚本块”。和编写的代码

这是什么意思??

0 投票
1 回答
1130 浏览

c# - 在 asp.net 的 URL 中显示分页号码?

是否可以在 asp.net 4.0 的 url 中显示分页号码?

我有一个 listview 和 datapager,我正在使用 Url 路由。所以当页面加载显示列表视图的第一页时,我希望 url 是

然后为第二页完成分页

如果可能的话,请指导我。

0 投票
1 回答
468 浏览

silverlight - 为什么 DataPager 忽略我的自定义 IPagedCollectionView

我已经编写了一个实现,IPagedCollectionView当我将它挂接到 a 时DataPager,它仍然是空的并且被禁用。我正在为IPagedCollectionViewICollectionViewIEnumerableIEnumerable<T>和通知提供成员。我究竟做错了什么?

此外,是否已经有一个IPagedCollectionView用于环绕 RIA 服务的 for silverlight实现,EntityQuery以便提供一次只请求一页数据的服务器端排序?

0 投票
2 回答
477 浏览

c# - C# DataPager 帮助!

我最近构建了一个列表视图,其中显示了使用 LINQ 从数据库中获取的许多产品。由于产品非常多,我不希望它们都同时在页面上列出,因为这会使搜索变得过于乏味。相反,我想添加分页。

我这样做的方法是创建一个 DataPager 并将其链接到 Listview。我的问题是由于错误,该站点将不再执行。“'LV_Pro_PagepropertiesChanging' 没有重载匹配委托 'System.Event.Handler'”。我对此感到相当困惑,因为我的代码似乎是正确的(无论如何对我来说!)。

有人可以看看这个,看看我是否设置正确!如果有人可以提出另一种方法,那也很棒。

寻呼机:

列表显示:

我的命令:

干杯。


0 投票
2 回答
1622 浏览

asp.net - DataPager 和 ASP.NET 页面路由的 QueryStringField?

我正在使用 DataPager 的 QueryStringField 在 url 中显示页码。工作罚款。但我不希望字段名称显示在 url 中。我累的是

全局文件代码:

并在 html 中为 DataPager 编写。

所以生成的url是:

我想在哪里。

这个怎么做?

0 投票
1 回答
1684 浏览

asp.net - Repeater inside Data Pager

I have a Repeater inside a datapager to display some of the page numbers, I'm using a templated pager field because there is other data inside there as well, and since I want to be able to re-use this, I have abstracted it out to a user control which is embedded in the data pager.

Here is the pager with the user control

#xA;

Here is the user control

#xA;

So the link buttons that are not in the repeater work correct and the template pager field receives the PagerCommand event, but when the link buttons inside the repeater are clicked they fire a postback and their own command event, but the PagerCommand event on the TemplatedPagerField is never fired.

The whole point of this is a re-useable control that generates paging values similar to 25-50 of 167 < Previous 2 3 4 Next >

0 投票
1 回答
205 浏览

silverlight-4.0 - Silverlight DataPager 控件丢失第一个/最后一个按钮

我在 XAML 中使用 DataPager 控件,如下所示:

并且前 99 页的所有内容都显示良好

在此处输入图像描述

但是,在第 100 页之后,我丢失了第一个/最后一个按钮图形

在此处输入图像描述

任何想法为什么或如何更改显示的页数以恢复空间?

0 投票
1 回答
358 浏览

asp.net - 是否可以使用某些查询字符串参数停止搜索引擎索引页面

我正在使用 asp.net DataPager 并注意到搜索引擎无法抓取创建的链接,所以我添加了一个查询字符串参数,现在看到它可以抓取链接。

我现在遇到的问题是,它现在最终会以同一页面的多个 url 结束。

是否可以使用查询字符串参数停止搜索引擎索引所有页面,例如:

所以搜索引擎会跟随这些链接而不是索引:

但会索引:

谢谢你的帮助

J。