Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中
|
日期:2007年5月8日 作者: 查看:[大字体
中字体 小字体]
|
|
功能:在textbox中输入内容,动态从数据库模糊查询显示到下拉框中,以供选择
1.建立一aspx页面,html代码
<HTML> <HEAD> <title>WebForm1</title> <SCRIPT language="javascript"> //城市------------------------------ function cityResult() { var city=document.getElementById("TextBox1"); WebForm1.GetCityList(city.value,get_city_Result_CallBack); } function get_city_Result_CallBack(response) { if (response.value != null) { //debugger; document.getElementById("DropDownList1").style.display="block"; document.getElementById("DropDownList1").length=0; var ds = response.value; if(ds != null && typeof(ds) == "object" && ds.Tables != null) {
上一篇:Ajax实现无刷新树
下一篇:Ajax实现DataGrid/DataList动态ToolTip
|
| Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中 相关文章: |
|
|
|
| Ajax实现在textbox中输入内容,动态从数据库中模糊查询显示到下拉框中 相关软件: |
|
|
|