HttpModule
Namespace: Wisej.Web.Ext.AspNetControl
Assembly: Wisej.Web.Ext.AspNetControl (4.1.0.0)
Custom module that installs a virtual path provider for the AspNetControl wrapper.
- C#
- VB.NET
public class HttpModule : IHttpModule
Public Class HttpModule
Inherits IHttpModule
The virtual path provider is used to "feed" a blank ASP.NET page that hosts the ASP.NET control that we are wrapping.
Constructors
HttpModule()
Initializes a new instance of HttpModule.
Methods
Dispose()
Disposes resources associated with the module.
ASP.NET calls this method when the application shuts down. The module doesn't hold any resources, so this method does nothing.
Example:
IHttpModule module = new Wisej.Web.Ext.AspNetControl.HttpModule();
module.Init(HttpContext.Current.ApplicationInstance);
// ...
module.Dispose();
Init(app)
Initializes the AspNetControl module.
| Parameter | Type | Description |
|---|---|---|
| app | HttpApplication | The HttpApplication that provides access to the methods, properties and events common to all application objects in the ASP.NET application. |
Registers a virtual path provider that serves the embedded Wisej.AspNetHost.aspx page, which hosts the wrapped ASP.NET controls, without saving it to a file. ASP.NET calls this method when the module is loaded. The module registers itself through Start, so adding it to Web.config is optional.
Example:
The following example registers the module manually in Web.config:
<system.webServer>
<modules>
<add name="WisejAspNetControl" type="Wisej.Web.Ext.AspNetControl.HttpModule, Wisej.Web.Ext.AspNetControl" />
</modules>
</system.webServer>