复选框上的过滤表单击asp.net [英] filter table on checkbox click in asp.net

查看:93
本文介绍了复选框上的过滤表单击asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i在asp.net中有数据表,我会在复选框上点击



目前,在复选框上点击,我在window.location.href +chkbox值

,在asp.net代码后面,我检查ifrstring是否为ckhbox值,然后按该值过滤表



此过程重新加载页面

但我想在复选框上点击数据表而不重新加载页面





我也希望在顶级到时间表过滤器中显示过滤为分区



如何做到这一点

Hi
i have datatable in asp.net which i filter on checkbox click

currently, on checkbox click, i window.location.href+"chkbox value"
and in asp.net code behind, i check if quesrstring as ckhbox value, then filter table by that value

this process reloads the page
but i want to filter datatable on checkbox click without reloading page


also i want to show filtering as division in top till time table filters

how to do this

推荐答案

如果你想学习如何使用 Ajax jQuery ,那么请阅读以下文章并尝试掌握这个概念。然后,您就可以在应用程序中应用相同的概念来更新数据而无需重新加载页面。



1. 使用jQuery直接调用ASP.NET AJAX页面方法 [ ^ ]

2. < a href =http://www.aspsnippets.com/Articles/Call-ASPNet-Page-Method-using-jQuery-AJAX-Example.aspx>使用jQuery AJAX示例调用ASP.Net页面方法 [ ^ ]
If you want to learn how to work with Ajax and jQuery, then go through the below articles and try to grasp the concept. Then you would be able to apply the same concept in your application to update the data without reloading the page.

1. Using jQuery to directly call ASP.NET AJAX page methods[^]
2. Call ASP.Net Page Method using jQuery AJAX Example[^]


也可以使用更新面板

访问链接例如

http://msdn.microsoft.com/en-us/library/bb386454%28v=vs.100%29.aspx [ ^ ]



在更新面板中放置核对表框并继续



快乐编码!

:)
can use update panel also
visit link for example
http://msdn.microsoft.com/en-us/library/bb386454%28v=vs.100%29.aspx[^]

put checklist box in update panel and go ahead

Happy Coding!
:)


这篇关于复选框上的过滤表单击asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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