0
如何爲中繼器控件應用自動完成?我將一個按鈕單擊添加到4個文本框,這是綁定到中繼器。中繼器控件中文本框的自動完成
我想在每次添加點擊時將自動完成應用於文本框之一。我也有我的webmethod通過json獲取數據。
protected void btnAdd_Click(object sender, EventArgs e)
{
List<Employee> dtEmployee = new List<Employee>();
dtEmployee = GetEmployee();
if (Session["EmployeeTable"] != null)
{
dtEmployee = (List<Employee>)Session["EmployeeTable"];
rptEmployee.DataSource = dtEmployee;
rptEmployee.DataBind();
rptEmployee.Visible = true;
}
else
{
rptEmployee.DataSource = null;
rptEmployee.DataBind();
rptEmployee.Visible = false;
}
}
你最好先檢查一下這個鏈接HTTPS ://jqueryui.com/autocomplete/ –