一、AjaxSample.aspx
处理业务数据,产生XML数据,供JqueryRequest.aspx调用,代码如下:
代码如下:
protected void Page_Load(object sender, EventArgs e)
{
string uid = Request.QueryString["username"];
string pwd = Request.QueryString["password"];
Response.ContentType = "application/xml";
Response.Charset = "utf-8";
Response.Write("?xml version='1.0' encoding='utf-8'?");
Response.Write(@"comments");
Response.Write(@"comment username='" + uid + "' password='" + pwd + "'");
Response.Write(@"conten...
[ 查看全文 ]