0

I like to execute javascript/server side code for each and every request(*.htm,*.asp,*.aspx,*.asmx, ...) to IIS server.

Is there any way to write a isapi (dll) and register it with the iis that will accept all kind of request (*.*) and once my script is excuted, i will forward the request to appropriate isapi filter?

Oded
  • 489,969
  • 99
  • 883
  • 1,009
Haseeb Asif
  • 1,766
  • 2
  • 23
  • 41

1 Answers1

0

HttpModule might be what you are looking for. You will register your HttpModule to web.config and it will be added to pipeline, and will be executed for each request. But i dont think you can run javascript but you will be able to execute c# code on every request.

Here is msdn article , How to create HttpModule:

http://msdn.microsoft.com/en-us/library/aa719858(v=vs.71).aspx

adt
  • 4,320
  • 5
  • 35
  • 54