@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>StudentAdd</title>
<script src="~/Scripts/jquery-1.10.2.js"></script>
<script>
$(function () {
//学校列表显示
//先获取数据再进行反填
$.ajax({
url: "http://localhost:8045/SchoolWebService.asmx/GetSchoolList",
type: "post",
async:false,
success: function (data) {
$(data).each(function () {
$("#Select1").append('<option value="'+ this.SchoolCode + '">' + this.SchoolName + '</option>');
})
//反填
$.ajax({
url: "http://localhost:8045/StudentWebService.asmx/GetStudentListByID",
type: "post",
async:false,