自动完成externder如何使用母版.... [英] auto complete externder how to working with master page....
本文介绍了自动完成externder如何使用母版....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:TextBox ID="StateTextBox" AutoPostBack="true"
style=" border: 1px solid #A7A9AC;border-radius: 3px 3px 3px 3px;color: #333333;float: left;margin-right: 8px;padding: 3px 0;width: 185px;"
runat="server" ontextchanged="StateTextBox_TextChanged"></asp:TextBox>
<asp:AutoCompleteExtender ID="StateTextBox_AutoCompleteExtender" runat="server"
MinimumPrefixLength="1" EnableCaching="true" CompletionSetCount="1" CompletionInterval="1000"
ServiceMethod=""
TargetControlID="StateTextBox">
</asp:AutoCompleteExtender>
StateTextBox_AutoCompleteExtender.ServiceMethod = "StateTextBoxBind";
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static List<string> StateTextBoxBind(string prefixText)
{
DataTable dt = new DataTable();
communicator2 Obj = new communicator2();
dt = Obj.StateTextBoxBind(prefixText);
if (dt != null)
{
//da.Fill(dt);
List<string> LoctionName = new List<string>();
for (int i = 0; i < dt.Rows.Count; i++)
{
LoctionName.Add(dt.Rows[i]["search_state"].ToString());
}
// search_state_id = Convert.ToInt32(dt.Rows[0]["search_state_id"]);
return LoctionName;
}
else
{
return null;
}
}
找不到我的网页方法....这种类型的错误是ouccer。
未知的Web方法StateTextBoxBind。
参数名称:methodName
my web method is not found....this type error is ouccer.
Unknown web method StateTextBoxBind.
Parameter name: methodName
推荐答案
使用服务方法和服务路径然后检查你的cs文件是否在app_code文件夹然后写〜/那里检查路径是否找到........(:)
use service method and service path there and then check if your cs file in app_code folder then write ~/ there and check that path is found or not........(:)
这篇关于自动完成externder如何使用母版....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文