HTTP Module and ajax
<p>If I add an HTTP module in the web.config file like this:</p>

<pre><code>  &lt;httpModules&gt;
      &lt;add name="TheName" type="MyModule"/&gt;
   &lt;/httpModules&gt;
</code></pre>

<p>Will it fire its code if I write this:</p>

<pre><code> public void Init(HttpApplication TheApp)
    {
        TheApp.BeginRequest += new EventHandler(MyCode);
    }
</code></pre>

<p>When I'm calling a static page method from jquery like this:</p>

<pre><code>$.ajax({
    type: "POST",
    url: "../Pages/AnyPage.aspx/AnyPageMethod",
        ......
</code></pre>

<p>If that's not the proper way to fire MyCode when an ajax request comes in then please let me know what the correct way to do it might look like.</p>

<p>Thanks.</p>
