使用asp.net中的jquery在dropdownlist中绑定硬国家/地区名称 [英] bind hard country name in dropdownlist using jquery in asp.net

查看:51
本文介绍了使用asp.net中的jquery在dropdownlist中绑定硬国家/地区名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...



我想使用jquery在下拉列表中绑定硬编码的国家/地区名称

我搜索了这个goggle,我发现将使用web服务完成。

你能告诉我如何在dropdownlist中绑定硬编码值

Hi...

I want to bind hard coded country name in dropdownlist using jquery ???
I searched this on goggle,I found that would be done using web service.
Can you please tell me how to bind hard coded value in dropdownlist

推荐答案

请参阅以下链接,这将对您有所帮助



LINK HERE
See the following link which will help you lot

LINK HERE


是的,您可以对返回Country列表的WebMethod使用JQuery Ajax调用。



参考



使用jQuery AJAX在ASP.NET中绑定下拉列表 [ ^ ]



how-to-bind-dropdownlist-in-aspnet [ ^ ]





注意:删除/忽略数据库访问/绑定部分并将其替换为HardCoded列表国家。其余的逻辑仍然是相同的。
Yes you can use JQuery Ajax call for a WebMethod which returns the Country list.

Refer

Bind Dropdownlist in ASP.NET using jQuery AJAX[^]

how-to-bind-dropdownlist-in-aspnet[^]


Note: Remove/Ignore the Database accessing/binding part and replace it with the HardCoded list of Countries. Rest of the logic remains the Same.


这篇关于使用asp.net中的jquery在dropdownlist中绑定硬国家/地区名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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