asp.net MVC4——省市三级联动
转载注明出处:http://www.cnblogs.com/breakman/p/5501971.html
controller:
public ActionResult GetCity(string id)
{
AreaService _areaSvc = new AreaService();
List<SyArea> syAreaList = _areaSvc.GetList(id);
return Json(syAreaList, JsonRequestBehavior.AllowGet);
} public ActionResult GetCityList()
{
return View();
}
,view:
<div>
<select class="input-text" style="width: 70px;" id="ddlProvince"><option></option></select>
<select class="input-text" style="width: 70px;" id="ddlCity" name="ddlCity"></select>
<select class="input-text" style="width: 70px;" name="area_id" id="area_id"></select>
</div>
<script type="text/javascript">
//省市联动
$(document).ready(function () {
GetByJquery();
$("#ddlProvince").change(function () { GetCity() });
$("#ddlCity").change(function () { GetDistrict() });
}); function GetByJquery() {
$("#ddlProvince").empty(); //清空省份SELECT控件
var url = "/GetArea/GetCity/" + 0;
$.getJSON(url, function (data) {
$("<option></option>").val('-1')
.text("请选择")
.appendTo($("#ddlProvince"));
$.each(data, function (i, item) {
$("<option></option>")
.val(item["Area_Code"])
.text(item["Area_Name"])
.appendTo($("#ddlProvince"));
});d
GetCity();
});
} function GetCity() {
$("#ddlCity").empty(); //清空城市SELECT控件
var url = "/GetArea/GetCity/" + $("#ddlProvince").val();
$.getJSON(url, function (data) {
$("<option></option>").val('-1')
.text("请选择")
.appendTo($("#ddlCity"));
$.each(data, function (i, item) {
$("<option></option>")
.val(item["Area_Code"])
.text(item["Area_Name"])
.appendTo($("#ddlCity"));
});
GetDistrict();
});
} function GetDistrict() {
$("#area_id").empty(); //清空市区SELECT控件
var url = "/GetArea/GetCity/" + $("#ddlCity").val();
$.getJSON(url, function (data) {
$("<option></option>").val('-1')
.text("请选择")
.appendTo($("#area_id"));
$.each(data, function (i, item) { $("<option></option>")
.val(item["Area_Code"])
.text(item["Area_Name"])
.appendTo($("#area_id"));
});
});
}
</script>
效果图: aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVcAAAHQCAIAAACa5r4vAAAgAElEQVR4nO2dvY4j15WA+4kMw/UYDJwMFE9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uFtT71gJUH63BRvjDhw+DmI+3YAGYSdoCU0sA1FQi1j4FK4vLBDFvwz54iAVgEbIWyAVqPJ6nvf2+7yXU7XNt70BfnFygQGwBiXx7HwvAgiyQC9hCgzL4b3sBSQuQCxSIuwAWxgVgcRbIBTT4OzMpYL1e65AhucAk4jgvKAALwHzm5gJ22k/lU8gFyiRDPacALADzmZsLFPbM7UAuUCYX7VgA7ohaC9im3s7tkYsOBE8P8oJgFgC5QBksAM6wsrg5sAA4gwWaAwuAM1igObAAOHPx85///Kc//ekFnDL3/SuC04YfEMC5gwUAzh0sAHDu/D/eOe4Nnc3wGwAAAABJRU5ErkJggg==" alt="" />
asp.net MVC4——省市三级联动的更多相关文章
- asp.net MVC4——省市三级联动数据库
数据库设计
- [moka同学笔记]Yii下国家省市三级联动
第一次做省市三级联动时候遇到了坑,感觉还是自己太菜.头疼了很久研究了很久,最后终于发现了问题.大致总结一下思路 在控制器中实例化model,然后在视图中渲染所有国家,当选取国家时候,ajax通过 id ...
- ASP.NET实现省市区三级联动(局部刷新)
跟前一篇ASP.NET实现年月日三级联动(局部刷新)一样,没什么技术含量,直接上代码 <asp:ScriptManager ID="ScriptManager1" runat ...
- JS实现年月日三级联动+省市区三级联动+国家省市三级联动
开篇随笔:最近项目需要用到关于年月日三级联动以及省市区三级联动下拉选择的功能,于是乎网上搜了一些做法,觉得有一些只是给出了小的案例或者只有单纯的js还不完整,却很难找到详细的具体数据(baidu搜索都 ...
- Webform——中国省市三级联动以及IsPostBack
首先要明白Webform的运行顺序,当开始启动时候,首先执行的是Page_Load事件, 当点击任意按钮后,每次点击都要先执行一遍Page_Load(在这里Page_Load里面的事件是给数据控件加载 ...
- 用jquery+Asp.Net实现省市二级联动
页面html: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ddlAjax. ...
- Vue 国家省市三级联动
在网上查阅一下,基本上是省市区三级联动,国家省市的就只能自己动手了. 样式就根据自己的需要去调整了. JSON数组太长,就折叠放在了后面. 效果图: <!DOCTYPE html> < ...
- EXT 省市三级联动及默认选择
var provinceStore = Ext.create('Ext.data.Store', { fields: ['id', 'name'], proxy: { type: 'ajax', ur ...
- ASP.NET实现年月日三级联动(局部刷新)
直接上代码,不多说别的了 <asp:ScriptManager ID="ScriptManager1" runat="server"> </a ...
随机推荐
- PHP之用户验证和标签推荐的简单使用
本篇主要是讲解一些最简单的验证知识 效果图 bookmark_fns.php <?php require_once('output_fns.php'); require_once('db_fns ...
- Spring resource bundle多语言,单引号format异常
Spring resource bundle多语言,单引号format异常 前言 十一假期被通知出现大bug,然后发现是多语言翻译问题.法语中有很多单引号,单引号在format的时候出现无法匹配问题. ...
- 如何在Elasticsearch中安装中文分词器(IK+pinyin)
如果直接使用Elasticsearch的朋友在处理中文内容的搜索时,肯定会遇到很尴尬的问题--中文词语被分成了一个一个的汉字,当用Kibana作图的时候,按照term来分组,结果一个汉字被分成了一组. ...
- iOS开源项目周报1215
由OpenDigg 出品的iOS开源项目周报第一期来啦.我们的iOS开源周报集合了OpenDigg一周来新收录的优质的iOS开发方面的开源项目,方便iOS开发人员便捷的找到自己需要的项目工具等. PY ...
- (转)从0开始搭建SQL Server AlwaysOn 第二篇(配置故障转移集群)
原文地址: http://www.cnblogs.com/lyhabc/p/4682028.html 这一篇是从0开始搭建SQL Server AlwaysOn 的第二篇,主要讲述如何搭建故障转移集 ...
- windows下的命令行工具babun
什么是babun babun是windows上的一个第三方shell,在这个shell上面你可以使用几乎所有linux,unix上面的命令,他几乎可以取代windows的shell.用官方的题目说就是 ...
- Spring MVC重定向和转发以及异常处理
SpringMVC核心技术---转发和重定向 当处理器对请求处理完毕后,向其他资源进行跳转时,有两种跳转方式:请求转发与重定向.而根据要跳转的资源类型,又可分为两类:跳转到页面与跳转到其他处理器.对于 ...
- jQuery.data() 使用方法
data() 方法向被选元素附加数据,或者从被选元素获取数据.在实际开发中,可以用来记录上一步操作某一对象的值,来给下一步操作做一些判断 $("#btn1").click(func ...
- 用C表达面向对象语言的机制——C#版
PS:本文PDF版在这里(格式更好看一些).最新的源代码请在本页面文末下载,PDF中的链接不是最新的. 用C表达面向对象语言的机制——C#版 我一直认为,面向对象语言是对面向过程语言的封装.如果是这样 ...
- ABP(现代ASP.NET样板开发框架)系列之10、ABP领域层——实体
点这里进入ABP系列文章总目录 基于DDD的现代ASP.NET开发框架--ABP系列之10.ABP领域层——实体 ABP是“ASP.NET Boilerplate Project (ASP.NET样板 ...