<system.web> ... <httpHandlers> <add verb="*" path="encry/*.*" type= "CustomHttpHandler.Class1,CustomHttpHandler"></add> </httpHandlers> ... </system.web> below to implement IHttpHandler//------------ ------------file:Class1.cs--------- using System; using System.Web; namespace CustomHttpHandler { ///<summary> ///Summary of Class1 Description. ///</summary> public class Class1 : System.Web.IHttpHandler { public Class1() { ////TODO: Add constructor logic here //} #region IHttpHandler member public void ProcessRequest(HttpContext context) { //TODO: Add Class1.ProcessRequest implementation //string strRefUrl=context.Request.ServerVariables["HTTP_REFERER"]; /* Insert your own code, read the contents of the file and populate the Response, which simply returns an error message* /context.Response.Write("You cannot access this page"); } public bool IsReusable { get { //TODO: Add Class1.IsReusable getter implement return false; } } #endregion } }
The rapid development of the enterprise network has made the supporting servers an
First, the advantages of domain renaming tools A new feature, you mu
When deploying ASP.NET MVC application under IIS6, it is directly set to handle all requests to ASP.
Storage server has been widely used in all walks of life, from daily work, production records, video
Windows Server 2012 Storage Space Disk Check
How to identify if the VPS host is normal
Vps common problems, vps and server differences
Description www server use linux build (a)
How Apache configuration server cross-domain resource sharing (Cross-Origin Resource Shari
When setting Windows 2003 to shut down or restart, the prompt box
Modify the PASV port range of the FTP server under IIS
How the Data Center Prevents Electrostatic Discharge
Linux system vps server entry level security configuration guide
Solve Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
How to solve Ghost installation Win7 error message 10100 problem
Win8 new Metro interface entry
Microsoft official version of the tool to shield Win10 upgrade notification icon
Learn 20 special tips of Win XP (1)
How to set up IIS for win7 Ultimate?
Winning attention, Win8.1 immediately has a start menu
What should I do if the Win7 system screen font is blurred? ClearType setting graphic tutorial
Win8.1 system boot folder path can not find
Win7 start menu can not find the run command There are other ways to open it?