重新绑定使用AJAX的GridView(不回发) [英] Rebind gridview using AJAX (without post back)

查看:144
本文介绍了重新绑定使用AJAX的GridView(不回发)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算允许用户打开包含一个gridview难熬Filter文本框中modalpopupextender。我想它,所以当在过滤器中的用户类型,过滤器被应用到GridView,然后在GridView的内容进行更新,以反映所应用的过滤 - 无需回发。也非常的GridView控件将被过滤掉,因为他的用户类型,而不是按一个按钮。

I plan on allowing a user to open a modalpopupextender containing a gridview witha Filter text box. I want it so when the user types in a filter, the filter is applied to the gridview and the contents of the gridview is then updated to reflect the applied filter - all without posting back. Also ideally the gridview will be filtered as he user types, rather than having to press a button.

我猜它会利用我的SqlDataSource和一个UpdatePanel FilterParameters,但任何人都可以提供有关我将如何做到这一点的更透彻的解释?这也将会是好的,如果我使用的代码是一般,可与其他任何GridView和数据源使用。

I'm guessing it would utilise FilterParameters on my SqlDataSource and an UpdatePanel, but can anyone offer a more thorough explanation on how I would do this? It'd also be nice if the code I use is 'general' and can be utilised with any other GridView and DataSource.

感谢

推荐答案

你们能不能换在GridView中的UpdatePanel,然后在文本框的变化重新绑定与过滤数据源?

Couldn't you wrap the gridview in a updatepanel, and then on textbox change rebind the datasource with the filter?

这篇关于重新绑定使用AJAX的GridView(不回发)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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