使用数据库和AjaxControlToolkit自动完成 [英] AutoComplete With DataBase and AjaxControlToolkit

查看:81
本文介绍了使用数据库和AjaxControlToolkit自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经将两个文本框分别用于国家和其他州,并为两个文本框添加了AutoCompleteExtender.我的要求是,当我在第一个文本框中选择国家/地区时,则在第二个文本框中应仅显示与该特定国家/地区相对应的州.

假设我选择印度",

解决方案

请参考:这与源代码完全相同.

在ASP.Net中级联DropDownList [ http://www.c-sharpcorner.com/UploadFile/b3714c/countrystateusingautocompleteextender/ [ ^ ]


Hi
I have taken two textboxes one for country and other state.And added AutoCompleteExtender for both the textboxes. My requirement is when i select country in the 1st textboxes,then in the second it should display only the states corresponding to that particular country.

Suppose if i select "India" as a country in the first textbox,then in the second textbox it should display only the states of india.

解决方案

Please refer: This is exact one with source code.

Cascading DropDownLists in ASP.Net[^]
This article explains you how to create a Cascading DropDownLists in ASP.Net that is DropDownLists which depend on the previous or parent DropDownList for the data.


Refer this
http://www.c-sharpcorner.com/UploadFile/b3714c/countrystateusingautocompleteextender/[^]


这篇关于使用数据库和AjaxControlToolkit自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆