如何将其他参数传递给AutoCompleteExtender的ServiceMethod? [英] How to pass addtional parameters to AutoCompleteExtender's ServiceMethod?
本文介绍了如何将其他参数传递给AutoCompleteExtender的ServiceMethod?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将其他参数传递给AutoCompleteExtender的ServiceMethod?
我正在尝试为Web应用程序中的所有自动完成文本框创建通用的Web服务方法.
我想将源表名称,要检索的密钥以及任何筛选条件传递给Web方法.
感谢所有提示/建议.
解决方案
使用自动完成扩展程序的上下文键属性
UseContextKey ="true" ContextKey =<%#Eval(ddlCostCentre.SelectedValue)%>"
并在服务方法中使用contextkey值
不,您不能通过.
1.使用分隔符(如#字符或〜.)连接参数.
2.然后按该字符将其拆分.
How to pass addtional parameters to AutoCompleteExtender''s ServiceMethod?
I am trying to create common web service method for all the autocomplete textboxes in my web apps.
I want to pass the source table name,the key to be retrived, and any filtring criteria to the web method.
Any hints/suggestions are appreciated.解决方案Use Context Key Property of Auto complete Extender
UseContextKey="true" ContextKey="<%# Eval(ddlCostCentre.SelectedValue) %>"
and use contextkey value in service method
No you can''t pass.
1. concatenate your parameters using a separator like # character or ~.
2. Then split it by that characater.
这篇关于如何将其他参数传递给AutoCompleteExtender的ServiceMethod?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文