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)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JqueryTest.aspx.cs" Inherits="XmlHttpRequestTest.JqueryTest" %>
title>
Called interface: JqueryService
Front desk:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JqueryService.aspx.cs" Inherits="XmlHttpRequestTest .JqueryService" %>
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.