如何在OnClientDragEnd事件MultiHandleSliderExtender上调用c#函数而无需回发 [英] How to call a c# function on OnClientDragEnd event MultiHandleSliderExtender without postback
本文介绍了如何在OnClientDragEnd事件MultiHandleSliderExtender上调用c#函数而无需回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我正在使用MultiHandleSliderExtender使用Java脚本函数按价格对其产品进行过滤
Hello all
i am using MultiHandleSliderExtender for filtering the product by their price for that am using a java script function
<script type="text/javascript">
function ValueChangedHandler(sender, args) {
__doPostBack("Button1", "Click");
<%SetData(); %>
}
</script>
用于调用c#方法,但我确定了回发,如何在不对MultiHandleSliderExtender的OnClientDragEnd执行回发的情况下调用此方法.
请帮助..
for calling the c# method but i dose the postback how can i call this method without doing postback on OnClientDragEnd of MultiHandleSliderExtender.
plz help..
推荐答案
您要通过Javascript与服务器进行交互.
通过客户端(Javascript)与服务器端进行交互的方法很少:
1. XMLHttpRequest [回调 [ Web服务调用 [ PageMethod [ http://api.jquery.com/jQuery.ajax/ [ http://www.w3schools.com/jquery/jquery_ref_ajax.asp [
You want to interact with server from Javascript.
There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]
If you know jQuery, you can use it''s ajax method:
http://api.jquery.com/jQuery.ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]
这篇关于如何在OnClientDragEnd事件MultiHandleSliderExtender上调用c#函数而无需回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文