首先看一下数据库的设计:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN0AAADvCAIAAAD5FEbrAAASWklEQVR4nO2dPW/cxhaG+XcuYMkfawNWkfgzsfMDbpXEyucmzg8SwG4LIc3FbXSLtKoj9oFxoSpIY7iQOgMpmGLlNTVz5syZmTPkS+o8EARqlst5d/jszNGSspsHX/zy4Itf3rx50wdo2263fXp6ut14//79ycnJ5eVl967v3vWbzfHBwUHoCE3ThB4q3P/NmzcX12nb7vz8/PQDJycnbddtX0bfrtu2Ozs7W63W5+fnFxRN0wy3ffzdQk/f4ic0JDRRL4+Ojrqu257mtutOTk7a9up723abzfFmc9y2bcjL4Ul1ftz5Rxrg7yb00tnnysu+7/v+/Px8tV6vVuvVah0ckbB8w4dCOE8xL/NoHnzxy78O/s17+fEct9379+8vLy8vLy83m+PuXd91/a+/XxwdHa1W69ARHE3J7WHL8DtPyMvtRP727dvu3Qcv23W/Xvd9v25Xbdut1kEvPw6NzZfTIZovd9vbtXt71jeb462UEi+H82XIy+H0Se6Q5OVWyu7dtTrk8vLy/Py87Tpmvvw4NDZfTofIy6tCre2Ga/dmc9y23dEHQl46CzG5QPv7hJ4u9HInZdd98HK97terP//8c92uol5u9ZJodxGeO7eYl3mIvDw4OFit1s734caW0BEcTcnt0D48ES+7ft2tNpvj7c5v3779448/Tk9P25bzklmsnYf8PW2+1CJeXyJDenl2dta2XdtdfV15uV7169XZ2dlqvWK8bK7/Ph561PGSaTQv84jPl8iQXq7W68PDw9V6vf3aevnr7xdt97EOyagvd+u4466zypuXKizNS5+thf7XCIN7YV7msnwvpwU/ISazry+NRTLv+dJYKoSX//nv/+zLvqb9or0c+c3x119/jdxjCZhpMVPJcfIT9aV5yYOZFjOVHMLLGvPl3w8f3oSv8oHSwrwUkXTO5jWmu7TmpSLmZSnmZQ1Gqi9reCm/nyPjOPyNS0NgvZy8qlGsjuY0X1b1Un58ZC+ju2mNofzIeaM6Jy99dEf5JnjpU8/UpOObl6VHMy9rH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JcS8VAAzLWYqIfO7Pg4IZlrMVEKsvlQAMy1mKiGUl49e7T+ydTwBzLSYqYSQXn69/+hr+7szY1oIL62+TAIzLWYqIbSXVl8mgZkWM5UQ2ktyHZ82FjKYaTFTCTEvFZCkjV68Ub+iO68xdLD6UoFyL2vcZjCvMXSYX33pn8LQ3Q8Z++T5Qab1b8II3ZMRfUV56I4hwP1EsnV8kvuJojKR28J9/EcL0zo5VdrlKI5hXotu+Gbv0dd7MS91Q0hiMd1FnYtuF76EbC/lc6puqtQxRPEyWl8u0stsFfiZKVs48/Jawj1BfTlc9Zbh5fAVKaYlO3Xaa0yWfKq5ehldx/vBuVyGl8zxS9JGD5vaLueGeqkYQhKL6Q7TS2YilEzP5qWbMKm+rCElGWvXnbPG1WspT+skV2mXM68xjIZv9h59Jf/3icoTCGMhM7v6Eh/ay71HX8F+rg7IvObLWWBeKoCZFjOVEMrLT7+y6+NJYKbFTCWE9hL5+jggmGkxUwmhvdz71NbxBDDTYqYSYl4qgJkWM5WQhPrSMMaE8NLqyyQw02KmEkJ7aet4EphpMVMJMS8VwEyLmUoI7aV9fplEYdqki5Dy60DzGkMHqy8VINMyF7792x3854b6uslefrn36ZewXkbPIjnlRPcpuWEiOjj8McefLzPGMK8lmyIvJUJoxRp2wbSQ25J9mJbstMJjSiyJbstTZYxhXksJtJfyf1+djFIjFnNwSQxh1LzkvJfRY0bnS10vySfOw0thfWlebol6yWsX7d287LPX8QV4mR2bT8sEJpX19TUve/MyA6aSiwZO3eHmenlLVl8yUczL4dEk2oVmypLAC/QStr70T5tWS0ns1N97Qh1J2su9rDeG5KjmQXt5y1vH7cu+pv1qbn3y5a1PrnlpGJPT3PrErS8NY3L+AaWi+it4qu0bAAAAAElFTkSuQmCC" alt="" />
2.存储过程的写法:
ALTER proc [dbo].[pro_GetCity](
@city_pid int
)
as
begin
--SELECT * FROM tbl_city WHERE city_pid IN (
select * from tbl_city where city_pid=@city_pid
end --exec [dbo].[pro_GetCity] 0
看一下执行效果:
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YB9kVCuJz/a+cbDL1G8Fpqz8nejuKTXA7jDyOCS3CNbdIMKtD4vg6x6oBy0jqkvSYbxba3+E6cNrc/LIKseKAetY0or2hKQPgJZ9UA5aB1TWtGWgPQR0A58qZamG1RDHIBDK9oSkD4CpgNtP4oDsdCKtgSkj8CFAzoDqLY4AIdWtCUgfQQuHNAZQLXlmXrhkiD1AAK0oi0B6SMg9QACtKItAekj8JcDf7v5ZdMNf7v5pVqkHoiCVrQlIH0ELhxo+1E7IPcHosiPFne21frQ+rwM/g/LjulePqHZ6QAAAABJRU5ErkJggg==" alt="" />
服务层的代码:
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。
[System.Web.Script.Services.ScriptService] [WebMethod]
public string CityList(string citycode)
{
return JsonHelper.GetJson<List<tbl_city>>(new SelectComboxBLL().CityList(citycode));
}
数据层的代码:
public List<tbl_city> CityList(string citycode)
{
SqlParameter[] pars = { new SqlParameter("@city_pid", citycode) };
return new SQLBase().TableToEntity<tbl_city>(DBhelp.SqlHelper.GetTable("pro_GetCity", System.Data.CommandType.StoredProcedure, pars));
}
业务层:
public List<tbl_city> CityList(string citycode)
{
return new SelectCombox().CityList(citycode);
}
最核心的jquery调用WebService:
<script type="text/javascript"> $(function () {
//省市县的绑定
$.ajax({
type: "post",
contentType: "application/json",
url: "/WebService/SelectComboxService.asmx/CityList",
data: "{citycode:'0'}",
success: function (result) {
var arr = null;
if (typeof result.d == 'string')
arr = JSON.parse(result.d);
else
arr = result.d;
var stroption = '';
for (var i = 0; i < arr.length; i++) {
stroption += '<option value=' + arr[i]._city_id + '>';
stroption += arr[i]._name;
stroption += '</option>';
}
$('#seprovince').append(stroption);
}
}) $('#seprovince').change(function () {
$('#secity option:gt(0)').remove();
$('#searea option:gt(0)').remove(); $.ajax({
type: "post",
contentType: "application/json",
url: "/WebService/SelectComboxService.asmx/CityList",
data: "{citycode:'" + $(this).val() + "'}",
success: function (result) { var arr = null;
if (typeof result.d == 'string')
arr = JSON.parse(result.d);
else
arr = result.d;
var strocity = '';
for (var i = 0; i < arr.length; i++) {
strocity += '<option value=' + arr[i]._city_id + '>';
strocity += arr[i]._name;
strocity += '</option>';
}
$('#secity').append(strocity);
}
})
}) $('#secity').change(function () {
$('#searea option:gt(0)').remove();
$.ajax({
type: "post",
contentType: "application/json",
url: "/WebService/SelectComboxService.asmx/CityList",
data: "{citycode:'" + $(this).val() + "'}",
success: function (result) {
var arr = null;
if (typeof result.d == 'string')
arr = JSON.parse(result.d);
else
arr = result.d;
var stroarea = '';
for (var i = 0; i < arr.length; i++) {
stroarea += '<option value=' + arr[i]._city_id + '>';
stroarea += arr[i]._name;
stroarea += '</option>';
}
$('#searea').append(stroarea);
}
})
})
});
前端页面:
<tr>
<td>** 详细地址:</td>
<td style="width:60%">
<select id="seprovince"><option>--请选择--</option></select>省
<select id="secity"><option>--请选择--</option></select>市
<select id="searea"><option>--请选择--</option></select>区(县)
</td>
</tr>
最后来张效果图:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWsAAAFACAIAAAD1T8raAAAdRklEQVR4nO2dQY8dxbXHvcj7Bnlily9xvwZSFlkgPcSO+1assgsBNpbYGFAWUQCFECF5EmbwSBaWsT02AiPZM/KFQbZjy0hwJRhZRhCsWUX2wlNvcXmXnq6qU6erqruru38/XY369q2uPnWq6n9P1+0+c8Lk4NbdZZZ6AGBYnMhSCwoCME1QEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHhQEACIBwUBgHiyKQgvXrwm+MqjIAAwTVAQgEhuHxz9Y89M9nX74MhEK8jBwcH29vYWFMP29vbBwQG92ZRov90+OPr96f+89O6dF9+5PcHXS+/e+f3p/9w+OIpUkDNnzsQdCO0R3SkT78245m/sHv3xb//KbsyAeOndO6evP4lUkM3NzbzWQDrRnTLx3oxr/sbu0R/+eiu7MQ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