.ASHX files, Anyone?

  • Thread starter Thread starter Roshawn Dawson
  • Start date Start date
R

Roshawn Dawson

Hi,

While browsing the web, I came across a file extension in ASP.NET called
..ashx.

Does anyone know what this file type is for? Is it useful? How do you
use it?

Thanks,
Roshawn
 
..aspx files are a special kind of file, asp.net engine assumes that they are
http handlers. They need a special declaration line at beginning, something
like this:

<%@ webhandler language="vb" class="yourhandlerclassname" %>

and following the code that implements the IHttpHandler interface. this is
the common way of implementing and http handler without the need of
pre-compiling your handler code.

spa.-
 
to add to that, there really isn't anything special with ashx files. they
could have just easily been aspx extensions but the framers wanted to
configure the files so they could not be requested by a browser hence the
extension ashx basically means asp.net simple handler files - if memory
serves me correctly

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
 
Back
Top