获取服务端页面JSON数据的JQUERY ajax方法定义
摘要:
服务端:应用命名空间using System.Web.Services;using System.Web.Script.Services;代码:[WebMethod(EnableSession=true)][ScriptMethod(UseHttpGet=false)]publicstaticstringGetAllRecord(){//代码内容}客户端:$.ajax({type:"POST",contentType:"application/json",url:"Default.aspx/MethodName",data:" 阅读全文
posted @ 2012-02-01 16:38 刑天 阅读(321) 评论(0) 推荐(0)