摘要: using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namesp... 阅读全文
posted @ 2016-08-30 17:28 一直乱跑的熊 阅读(2986) 评论(0) 推荐(0) 编辑
摘要: 什么是 XMLHttpRequest 对象? XMLHttpRequest 对象用于在后台与服务器交换数据。 XMLHttpRequest 对象是开发者的梦想,因为您能够: 在不重新加载页面的情况下更新网页 在页面已加载后从服务器请求数据 在页面已加载后从服务器接收数据 在后台向服务器发送数据 所有 阅读全文
posted @ 2016-08-30 13:56 一直乱跑的熊 阅读(2081) 评论(0) 推荐(0) 编辑
摘要: 下面的代码写在ashx一般处理程序中 声明context.Response.ContentType = "application/json";代表服务器端返回的数据为json字符串 context.Response.Write(new JavaScriptSerializer().Serialize 阅读全文
posted @ 2016-08-30 11:01 一直乱跑的熊 阅读(947) 评论(0) 推荐(0) 编辑