This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 23rd, 2013  |  syntax: None  |  size: 0.54 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3.   <system.web>
  4.     <httpHandlers>
  5.       <add verb="*" path="*.xml" type="FooBar.XmlHandler, FooBar" />
  6.     </httpHandlers>
  7.   </system.web>
  8. </configuration>
  9.        
  10. namespace FooBar
  11. {
  12.     public class XmlHandler : IHttpHandler
  13.     {
  14.         public bool IsReusable
  15.         {
  16.             get { return false; }
  17.         }
  18.  
  19.         public void ProcessRequest(HttpContext context)
  20.         {
  21.             HttpResponse Response = context.Response;
  22.             Response.Write(xmlString);
  23.         }
  24.     }
  25. }
clone this paste RAW Paste Data