.....【求Ajax高手】关于AjaxControlToolkit.dll中的某个控件问题.....【求Ajax高手】
--------------------编程问答-------------------- 自己顶~~ --------------------编程问答-------------------- .....【求Ajax高手】 --------------------编程问答-------------------- MinimumPrefixLength="1"最小输入一个字符 --------------------编程问答--------------------
这没错呀。这个调试的时候,会进入到另外一个页面,那页面时WebService的页面,可以直接调用方法的。。。用过的人懂我意思的。。。问题是不进去。。 --------------------编程问答-------------------- EnableCaching="true" 加上这句呢?另外ServicePath="WebService.asmx"
的路径是否正确? --------------------编程问答--------------------
EnableCaching="true" 这个是开启缓存..
路径的话, 页面与 WEBSERVICE 页面是在UI下面的,所以 ServicePath="WebService.asmx"
应该是正确的把?? --------------------编程问答-------------------- public string[] GetCity(string profixText, int count)
名称不对
public string[] GetCity(string prefixText, int count)这样写o变成e --------------------编程问答-------------------- --------------------编程问答--------------------
--------------------编程问答--------------------
也不对.... --------------------编程问答--------------------
对的啊,输入一个就给提示,对吧?但是我在WEBSERVICE里面加了断点的话就不会到页面里去,会先到WEBSERVICE里面,这时候我就可以测试这个方法了..用过的人就懂的~~ --------------------编程问答-------------------- 难道就没人能解决吗 --------------------编程问答-------------------- 有报‘sys’未定义的脚本错误没? --------------------编程问答--------------------
--------------------编程问答-------------------- 不应该啊,你要不把类的名称换一个试试,WebService这个类名称去的也太。我这边基本上跟你的差不多了,可以调试进入的。
/// <summary>
/// AutoComplete 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
[System.Web.Script.Services.ScriptService]
public class AutoComplete : System.Web.Services.WebService
{
[WebMethod]
public string[] GetCompleteList(string prefixText, int count)
{
string[] data = BizComModuleHelp.GetZjData(prefixText,count);
return data;
}
}
补充:.NET技术 , ASP.NET