I created a web application in which I use a module that redirects without urls to āwwwā ( http://example.com/ ) using āwwwā urls ( http://www.example.com/ ). But since I am on a shared hosting server, where I do not have permission to deploy HttpModule, I tried the same module code with the Global.asax file. It works!
I used the following (Application_BeginRequest ()) event to implement my HttpModule functions.
void Application_BeginRequest() {
The module and application work well and correctly from the Global.asax file. But I'm worried about performance.
Why we use HTTPModules in asp.net. If we can implement the same using the Global.asax file. Are there differences in performance between the two. Or is there any difference I need to worry about when using the Global.asax file instead of the HttpModule ??
Please explain!
Prashant
source share