Is there a way to get access to a property of HttpModule from asp.net page?
namespace MyHttpModule
{
public class Module : IHttpModule
{
public string M_Property { get; set; }
public void Init(HttpApplication context)
{
You can get active modules from ApplicationInstance, for example I have module that saves current RawUrl in BeginRequest :
Of course you have to register your module in web.config :
and then you can get module instance using name registered in web config, like this :