今天很简单介绍这一封装的调用
示例如下:
调用页面:JqueryTest.aspx(注:后台无代码)
被调用界面:JqueryService
前台:
后台:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace XmlHttpRequestTest
{
public partial class JqueryService : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String userName=Request.Form["userName"].ToString();
String password=Request.Form["password"].ToString();
if (userName.Equals("123") && password.Equals("456"))
{
Response.Write("true");
}
else
{
Response.Write("false");
}
}
}
}
注:由于代码过于简单,不做详细说明,有不明白的地方,请自行参考相关资料.
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