jQuery的自动完成extraParams [英] jquery autocomplete extraParams
本文介绍了jQuery的自动完成extraParams的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即时通讯使用jQuery自动完成
我可以通过extraParams到web服务在asp.net?
我的[的WebMethod]如何得到它?
Im using jquery autocomplete can I pass extraParams to webservice in asp.net ? and how will my [WebMethod] get it ?
推荐答案
您如下传递一个额外参数功能:
You pass an extra params function as follows:
$("#controlId").setOptions(
{
extraParams:
{
extra: function()
{
return "Something";
}
}
}
);
您使用,然后在你的web服务检索这样的:
You then retrieve this in your webservice using:
string yourParam = <HttpContext Goes Here>.QueryString["extra"];
这篇关于jQuery的自动完成extraParams的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文