daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace skmHttpHandlers
  2. {
  3.     public class SimpleHandler : IHttpHandler
  4.     {
  5.         public void ProcessRequest (HttpContext context)
  6.         {
  7.             context.Response.Write ("<html><body><h1>Test</h1></body></html>");
  8.         }
  9.  
  10.         public bool IsReusable
  11.         {
  12.             get
  13.             {
  14.                 return false;
  15.             }
  16.         }
  17.     }
  18. }
  19.    
  20. <configuration>
  21.     <system.webServer>
  22.         <handlers>          
  23.             <add name="SimpleHandler" path="*" verb="*"
  24.             type="skmHttpHandlers.SimpleHandler, skmHttpHandlers"
  25.             resourceType="Unspecified"
  26.             requireAccess="Script"
  27.             preCondition="integratedMode" />
  28.         </handlers>
  29.     </system.webServer>
  30. </configuration>
RAW Paste Data
Top