aspx 返回json
来源:互联网 发布:.net web编程教程 编辑:程序博客网 时间:2024/06/04 00:21
aspx json
string username = HttpContext.Current.Request["username"];
string password= HttpContext.Current.Request["password"];
string code= HttpContext.Current.Request["code"];
if (!string.IsNullOrEmpty(username))
{
Response.Buffer = false;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
string json = "{\"" + username + "\":\"" + username + "\",\"" + password + "\":\"" + password + "\",\"" + code + "\":\"" + code + "\"}";
Response.Write(json);
//Response.Flush();
Response.End();
}
string username = HttpContext.Current.Request["username"];
string password= HttpContext.Current.Request["password"];
string code= HttpContext.Current.Request["code"];
if (!string.IsNullOrEmpty(username))
{
Response.Buffer = false;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
string json = "{\"" + username + "\":\"" + username + "\",\"" + password + "\":\"" + password + "\",\"" + code + "\":\"" + code + "\"}";
Response.Write(json);
//Response.Flush();
Response.End();
}
0 0
- aspx返回JSON数据
- aspx 返回json
- jQuery调用ASPX返回json
- JQuery.getJSON 从aspx页面返回JSON数据
- JQuery.getJSON 从aspx页面返回JSON数据 .
- JQuery.getJSON 从aspx页面返回JSON数据
- jquery调用aspx文件返回json数据无刷新更新DropdownList
- aspx页面返回的response
- ext异步请求一个aspx/ashx/web service取得数据,服务端返回一个json.然后客户端接收并显示.
- 解决aspx的cs文件返回aspx前台页面内容??
- struts1返回JSON
- grails 中返回 json
- ajax 返回json
- action 返回 json 数据
- AJax 返回 json
- struts2 返回json数据
- SrpingMVC 返回JSON
- Response 返回xml,json
- 我的2017-搭建个人网站,搭建PHP环境(2)
- 数据删除和图片预览在项目中的运用
- 【Android通讯】Android线程间通讯
- 科技和互联网教育带来的好处就是尽可能给学生带去机会,带来公平
- 跨知识域思维与总结
- aspx 返回json
- MySql中有哪些存储引擎
- QT QWebEngineView加载网页 resize 与 resizeEvent的区别
- Android开发中一些被冷落但却很有用的类和方法
- 几个 shader
- 1047. Student List for Course (25)
- 对于大流量的网站,您采用什么样的方法来解决访问量问题?
- 递归算法-->汉诺塔hanoi
- android消息通知更新(小红点,数字提醒)之badgeview