1. Introduction:
In the previous article, we briefly introduced the request method in this mode, which gives us a general understanding. In the subsequent sections, we will talk about settings in webconfig today, the setting here is to make preparations for js to access the cs file.
2. added data in webconfig:
<System. web>
<HttpHandlers>
<Add verb = "POST" validate = "false" path = "*. xyz" type = "Better. Web. RemoteCallHandler"/>
</HttpHandlers>
</System. web>
Add this node in webconfig. The purpose of adding this node is to allow the program to access '. Xyz 'suffix file request, for parsing, with the namespace in the program Better. the RemoteCallHandler class in the Web is used for program parsing. The RemoteCallHandler class inherits the IHttpHandler and IRequiresSessionState classes. We will introduce the RemoteCallHandler class in the next article.
Here verb indicates that we only allow access to data using post requests.