AutoCompleteExtender 不工作的处理
2006-10-30 11:45
148 查看
最新版本的AutoCompleteExtender不工作,CTP 1.0 Beta版
主要发现 AutoCompleteExtender不触发WebService的工作函数
WebService.cs文件 作如下改动后,可正常使用
1、引用Microsoft.Web.Script.Services;
2、将[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]]两句删除掉
增加[ScriptService]
即可
参考:http://forums.asp.net/thread/1437583.aspx
测试的代码如下:
1using System;
2using System.Web;
3using System.Collections;
4using System.Web.Services;
5using System.Web.Services.Protocols;
6using Microsoft.Web.Script.Services;
7
8
9[ScriptService]
10public class WebServiceTest : System.Web.Services.WebService {
11
12 public WebServiceTest () {
13
14 //Uncomment the following line if using designed components
15 //InitializeComponent();
16 }
17
18 [WebMethod]
19 public string[] GetSuggestions(string prefixText, int count)
20 {
21 string[] r = new string[count];
22<span style="COLOR: #
主要发现 AutoCompleteExtender不触发WebService的工作函数
WebService.cs文件 作如下改动后,可正常使用
1、引用Microsoft.Web.Script.Services;
2、将[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]]两句删除掉
增加[ScriptService]
即可
参考:http://forums.asp.net/thread/1437583.aspx
测试的代码如下:
1using System;
2using System.Web;
3using System.Collections;
4using System.Web.Services;
5using System.Web.Services.Protocols;
6using Microsoft.Web.Script.Services;
7
8
9[ScriptService]
10public class WebServiceTest : System.Web.Services.WebService {
11
12 public WebServiceTest () {
13
14 //Uncomment the following line if using designed components
15 //InitializeComponent();
16 }
17
18 [WebMethod]
19 public string[] GetSuggestions(string prefixText, int count)
20 {
21 string[] r = new string[count];
22<span style="COLOR: #
相关文章推荐
- 使用AutoCompleteExtender在服务器端获取提示数据提示客户选择
- ajaxToolkit:AutoCompleteExtender 的触发选择(选中)事件
- [日志处理工作之四]从flume采集的event中提取能被kibana识别的时间戳 and 对比flume与logstash
- [日志处理工作之九]整合Spark SQL和Elasticsearch
- 人类将可能操控AI?神经网络语言处理工作原理被破解
- 晚上下班后您回家还在加班处理公司的工作吗?
- 成绩处理 根据班级对成绩分类 之根据班级新建工作表
- 图像识别的前期工作——使用pillow进行图像处理
- 并行处理提高工作效率
- 使用python自动化处理三方数据入库工作
- 作为产品经理,工作中遇到这三个问题如何处理?
- 更新处理函数在对话框的菜单中不能工作
- AutoCompleteExtender的問題
- 使用AutocompleteExtender无效或者没反应的原因记录
- Delphi-IOCP学习笔记<五>===测试IOCP工作线程处理队列顺序
- webdriver 操作 Firefox 在关闭浏览器时弹出 “Plugin Container for Firefox已停止工作” 处理办法。
- 图像处理之工作机会
- 21.Nginx工作进程之处理函数
- 工作中ORACLE操作中遇到的问题和处理方式记录
- Spring MVC请求处理流程、springMVC工作流程