Home >Web Front-end >JS Tutorial >Jquery Ajax parsing XML data (synchronous and asynchronous calls) simple example_jquery
" + loginname + "
" + "" + name + "
// The final output. This is the writing of CSSRAIN. It seems that it is more jq than MacNie. ;
XML data:
Copy code
public void ProcessRequest (HttpContext context) {
context.Response.StatusCode = 200;
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
ds = GetList("Account","AccountId","Loginname,Name",50,1,false, false,"1=1");
context.Response.ContentType = "text/xml";
context.Response.Charset = "GB2312";
context.Response.Clear();
context.Response.Write("< ;?xml version="1.0" encoding="gbk"?>n " ds.GetXml());
/*
StringBuilder sb = new StringBuilder();
sb.Append("");
sb.Append ("
sb.Append("
sb.Append("
*/
context.Response.End();
}
public bool IsReusable {
return false;
}
}