时间:2021-07-01 10:21:17 帮助过:5人阅读
代码如下:
protected void Page_Load(object sender, EventArgs e)
{
string u = Request["UserName"];
string p = Request["Password"];
string output = string.Format("'UserName':'{0}','Password':'{1}'", u, p);
Response.Write("[{");
Response.Write(output);
Response.Write("}]");
Response.End();
}
二、JqueryRequest.aspx
通过点击按钮来请求AjaxJson.aspx,获取JSon数据。代码如下:
代码如下: