开发者

how can i implement paging in asp.net like part of "Popular on eBay" in ebay site?

开发者 https://www.devze.com 2023-03-17 22:49 出处:网络
i have some items and i want display those in a little and limit div element. those items received from a web service and i want 2 or 3 items display in a time, and exist next and previous button 开发

i have some items and i want display those in a little and limit div element. those items received from a web service and i want 2 or 3 items display in a time, and exist next and previous button 开发者_Python百科for moving in items (paging). like "Popular on eBay" in ebay site?

i think this can be implement by jquery, any idea?

please help me


Yes, it can be done in jQuery, but the idea behind paging is preventing all of the data to be returned from the server at once. Otherwise, you are simply hiding data you've already retrieved -- which unless you have a design issue, really doesn't help either party (client/server). A better solution would be to use jQuery to limit the number of elements returned from the server, based on some locally stored paging variable(s).

Hypothetical answer for a hypothetical question. If you need additional assistance on how to do it, post some code or a solid concept that you are attempting to retrieve.


  • jquery can allow you to update the div to display the data you want.
  • jquery templates can help you format the display
  • ajax and webservices or page methods will help get you the data to display

plentiful demo's exist for all three. If you run into an issue post some code samples of what you have tried and what specific issues you are running into.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号