I had to implement a custom HttpModule to handle a 404 error in Sharepoint. It listens for the PreSendRequestContent event, and looks for a 404 status code. If one is found it does a TransferRequest.
I\'m using the following HttpModule to stop a couple of IPs that constantly attempt to spam my contact form.I don\'t get the spam as they trigger System.Web.HttpRequestValidationException but I do get
I\'m considering making use of an HttpModule for localization purposes (based on the example in this article) - but I\'m curious, is this safe?
Is it possible to log all requests (GET, POST, etc.) for all resources (.aspx, .html,.pdf, etc.) to db or file in ASP.NET 4 application?
I would like to change document icon in document library at runtime. Icon should be changed based on some condition I have in code. There is no difference what extension of file is (txt, doc, pdf, etc
I have created an HTTPModule that is being called for every request to my website. Inside the module I have created my own filter wrapper for HTTPApplication.Context.Response.Filter that allows me to
I have an HttpModule for handling errors up and running in the visual studio development environment.It works well.To the client, there are hard 404s and no apparent redirects.Google Analytics should
I attempted to find any information in regards to best practices of handling errors inside of a HttpModule unfortunately I can\'t seem to find any information on Google in regards to this.
What is the best method for uploading files of variable size (either very large or very small to an ASP.NET MVC 2 application file system)?
The code I\'ve used to get the HTTP Modules is basically HttpModulesSection modules = ((SystemWebSectionGroup)config.GetSectionGroup(\"system.web\")).HttpModules;