Copied to clipboard

Flag this post as spam?

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


  • Bryan Drenner 37 posts 59 karma points
    Mar 05, 2012 @ 19:22
    Bryan Drenner
    0

    How can I execute code before a view is rendered?

    I need pages to potentially redirect, based on whether a session with a remote web service has expired.  I tried creating a child action and calling it first-thing in the template (view), but I get an error, "Child actions are not allowed to perform redirect actions."  How else can I make an Umbraco 5 page bypass rendering and instead redirect to another page?  This seems like a generic need, but I can't any information on how to do it.

Please Sign in or register to post replies

Write your reply to:

Draft