Copied to clipboard

Flag this post as spam?

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


  • Cleyton 7 posts 27 karma points
    Jan 31, 2012 @ 18:44
    Cleyton
    0

    Handling Events

    Hello,

     

    I saw the available events of umbraco, but I do not found anyone like "Page_Init".

    There is someone to handle the page init?

     

     

    PS: English it's not my first language... Sorry

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 31, 2012 @ 19:28
    Jan Skovgaard
    0

    Hi Cleyton and welcome to the community :)

    What are you trying to achieve using the Umbraco events? Do you need to hook into something when for instance a page is published in the backoffice or do you need to make something happen on the frontend when the page is loaded?

    Try to explain a bit about it and then it will be a little easier to provide you with an answer you can use.

    /Jan

  • Cleyton 7 posts 27 karma points
    Jan 31, 2012 @ 19:34
    Cleyton
    0

    First, thanks Jan!

    I'm trying to do an "auto logon" with ActiveDirectory on frontend.

     ideas?

     

     

  • Rodion Novoselov 694 posts 859 karma points
    Feb 01, 2012 @ 04:17
    Rodion Novoselov
    0

    Hi. If you really badly need it then you can add it to a template file as an inline ASP.NET code (<script runat="server">), or to the ~/default.aspx page since it is a front controler that any request to the site ultimately goes to. However, personally I would discourage you from such approach. I think it would be much better to implement the feature you want with a custom HttpModule.

  • Cleyton 7 posts 27 karma points
    Feb 01, 2012 @ 11:45
    Cleyton
    0

    Hi Rodion,

    It's true!

    I'll put the logic in the HttpModule... it's better

     

    Thanks all!

Please Sign in or register to post replies

Write your reply to:

Draft