如何通过在 C# 中使用级联下拉列表选择单选按钮列表中的单选按钮来更改下拉列表值
我的 asp.net Web 应用程序中有一个单选按钮列表,其中包含两个单选按钮和一个下拉列表。我需要更改下拉列表值,以使用 Ajax 级联下拉列表在客户端选择单选按钮。任何人都可以提供解决方案吗?这意味着它将对我的项目真正有帮助。
谢谢...
I have one Radio buttonlist with two radio buttons and one dropdownlist in my asp.net web application. I need to change the drop down list values with respect to selecting radio buttons in client side using Ajax Cascading drop down. Can any one provide solutions for that means it will really helpful for my project.
Thank you...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有一个适合类似要求的现成代码。我希望它有帮助。
解决方案: 假设有一个包含状态的 xml 文件。这是下拉列表的数据源,您需要在单击单选按钮时填充该数据源。
ASPX代码
调用Web方法的Jquery代码
WebMethod在同一页面代码后面
状态类
解释
我假设你是熟悉Jquery。
I have a ready code for a similar requirement. i hope it helps.
Solution : Let's say there is a xml file with states. This is your data source for drop down list which you need to populate on radio button click.
Aspx code
Jquery code to call a web method
WebMethod in the same page code behind
State Class
Explaination
I assumed that you are familiar with Jquery.