Guest User

Untitled

a guest
Jan 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  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>
Add Comment
Please, Sign In to add comment