Today we will briefly introduce the calling of this package
The example is as follows:
Calling page: JqueryTest.aspx (note: no code in the background)
Called interface: JqueryService
Front desk:
Backend:
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");
}
}
}
}
Note: Because the code is too simple, no detailed explanation is given. If you don’t understand something, please refer to the relevant information yourself.
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