我有 2 个下拉列表 ( ddl_customername
) 和 ( ddl_customercode
)。
我有 sqldatasource1(select customername, customercode from tbl_customers)
我想根据另一个使用 AJAX 的所选项目来更改selecteditem
我的,dropdownlists
这个问题看起来很基本,但我无法实现实现该目标的结构。我怎样才能实现它?
我有 2 个下拉列表 ( ddl_customername
) 和 ( ddl_customercode
)。
我有 sqldatasource1(select customername, customercode from tbl_customers)
我想根据另一个使用 AJAX 的所选项目来更改selecteditem
我的,dropdownlists
这个问题看起来很基本,但我无法实现实现该目标的结构。我怎样才能实现它?
为您的 ajax 调用创建 wcf 服务。您可以使用 wcf 和 jquery 获得很多价值。
http://www.codeproject.com/Articles/128478/Consuming-WCF-REST-Services-Using-jQuery-AJAX-Call
http://ajax.net-tutorials.com/basics/introduction/
用更新面板覆盖 2 个下拉列表,并相互提供触发器可以解决问题。