开发者

jquery autocomplete extraParams

开发者 https://www.devze.com 2022-12-10 22:02 出处:网络
I开发者_开发百科m 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:

I开发者_开发百科m 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";
                            }
                        }
                    }
                );

You then retrieve this in your webservice using:

    string yourParam = <HttpContext Goes Here>.QueryString["extra"];
0

精彩评论

暂无评论...
验证码 换一张
取 消