asp.net中的ajax用法 [英] ajax usage in asp.net

查看:80
本文介绍了asp.net中的ajax用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


您能否描述一下我的项目中Ajax的用法??
我需要显示州取决于所选择的国家.
advance thnks

hi all,


can you please describe the usage of ajax in my project.?
i need to display states depends on the country selected .
advance thnks

推荐答案

您将需要使用ScriptManager,UpdatePanel并将下拉列表放在更新面板中.处理为国家/地区下拉列表选择的索引更改,并在其中设置州名称.

两个下拉菜单都应该在同一更新面板中.

您可以在网上找到很多与此相关的文章.
You will need use an ScriptManager, UpdatePanel and put dropdown lists in the update panel. Handle the selected index change for the country dropdown and set the state names in it.

Both the drop downs should be in the same update panel.

You can find a lot of articles related to this on web.


您可以使用CascadingDropDown
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx [ ^ ]

看看这篇文章
http://www.mikeborozdin.com/post/使用CascadingDropDown-Control.aspx创建链接的下拉列表 [
You can use CascadingDropDown
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[^]

Check out this article
http://www.mikeborozdin.com/post/Creating-Linked-Drop-Down-Lists-with-the-CascadingDropDown-Control.aspx[^]


老实读这篇文章,
您将获得基础知识

http://msdn.microsoft.com/en-us/library/bb386454.aspx [ ^ ]
read this article honestly,
you will get basics

http://msdn.microsoft.com/en-us/library/bb386454.aspx[^]


这篇关于asp.net中的ajax用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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