title: ASP.NET request extension type
body: <p>I am working on a large web application which I have recently shelved tons of <em>.aspx pages</em> from the project. </p>
  
  <p>To avoid page not found error, I added these entities in the xml which came around 300+ in count. I wrote a http module that checks the request url in the xml entities and if they are found, my module is going to redirect the request to respective new pages.</p>
  
  <p>Everything works great, but my collection is getting iterated for all the requests, I mean for each and every <em>.jpg, .css, .js, .ico, .pdf etc.</em></p>
  
  <p>Is there any object or property in .net that can tell the type of request that user requested for like <code>HttpContext.request.type</code>. So that I can avoid checking the request for all unwanted file types.</p>