Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vijay 129 posts 152 karma points
    Dec 31, 2009 @ 06:52
    vijay
    0

    How to give Application_Error event in HTTP Modules?

    How to give Application_Error event in HTTP Modules?

    --vijay.

  • atze187 160 posts 215 karma points
    Dec 31, 2009 @ 09:00
    atze187
    0

    If you want to raise an app error within an http module, you simply throw an exception according to the error you encountered.

    If you want to do something when such an app error is raised, then in your module you need to need to handle the Error event of your application context:

            public void Init(HttpApplication context)
            {
                context.Error += new EventHandler(context_Error);
            }

    I hope that this helps you...

  • vijay 129 posts 152 karma points
    Dec 31, 2009 @ 10:26
    vijay
    0

    Thanks for your reply,

    ---vijay.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies