When we design the B / S program, we often use XML, we can save these XML data in the database. There are still many cases we will save XML data into files on the server. This will have a problem, if the visitor knows this XML address, you can access it in your browser. And you don't want to be accessed for some XML. Let's take a look at how to implement this function. First, since it is unable to be accessed by the client, you can't use the client script to parse these XMLs. You can only resolve the results to the visitor after resolving the results. The method is very simple, 1, first you write a handle class first. This processing class inherits from IHTTPHANDLER. The code is as follows, where the code is relatively simple, you can increase the complex feature according to your own functionality; use system.Web;
Namespace DXH.Handler {///
public void ProcessRequest (System.Web.HttpContext context) {HttpResponse objResponse = context.Response; objResponse.Write ( "