1. AjaxSample.aspx Processes business data and generates XML data for JqueryRequest.aspx to call. The code is as follows:
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("");
Response.Write(@"");
Response.Write (@"");
Response.Write(@"Xuhui District, Shanghai");
Response.Write(@"");
Response.Write(@"");
Response.End();
}
2. JqueryRequest.aspx Request AjaxSample.aspx by clicking the button to obtain XML data. The code is as follows:
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn