停止页面使用javascript回发 [英] stop page post back using javascript

查看:111
本文介绍了停止页面使用javascript回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友...

我需要使用gridview在网页上显示数据.
所以我希望当用户要求gridview的下一页时,该页面不应该回发.
请向我提供任何可以阐明我观点的示例或链接.

hello friends...

I need to show data on webpage using gridview.
So I want it that that page should not be on post back when user ask for next page of gridview.
Please provide me with any kind of example or link which will clear my point.

推荐答案

如何在不回发的情况下移至下一页?将有回发.为了避免完全回发,您可以使用更新面板
How would you move to next page without postback? There will be postback. To avoid full postback you can use update panel


我需要使用gridview在网页上显示数据."

实际上,您可能没有.当不是真正的需求时,将技术作为需求是一个常见的错误.我怀疑客户是否会说我们必须在这里使用gridview".当您以这种方式思考时,您可以对其他可能性敞开心other.在这种情况下,我建议使用 jqGrid [
"I need to show data on webpage using gridview."

Actually, you probably don''t. It''s a common mistake to throw in a technology as a requirement when it''s not really a requirement. I doubt the client would ever say "we must use a gridview here". When you think like this, you can open yourself to other possibilities. In this case, I''d recommend replacing the gridview with jqGrid[^], a jQuery JGrid plugin. It''s not free, but it is extremely powerful and extremely flexible (Disclaimer: I have nothing to do with this company, we just used this product recently and were very impressed by it).


我只能通过使用javascript代码来做到这一点,而不是通过AJAX控件来实现"


您可能正在寻找以下内容:
使用JQuery进行客户端Gridview分页 [^ ]
"i wan to do it only by using javascript code not by using AJAX controls"


You might be looking for this: Client Side Gridview Pagination using JQuery[^]


这篇关于停止页面使用javascript回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆