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();
}