如何将其他参数传递给AutoCompleteExtender的ServiceMethod?

编程入门 行业动态 更新时间:2024-10-27 06:31:09
本文介绍了如何将其他参数传递给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?

本文发布于:2023-11-23 10:39:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621139.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   参数   ServiceMethod   AutoCompleteExtender

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!