Dynamicweb 8 Documentation
AfterOutput Field
Example 

Page after output notification. Occurs after the page has been rendered.
Syntax
'Declaration
 
Public Const AfterOutput As String
public const string AfterOutput
Example
Overriding the page after output in DynamicwebOverriding the page after output in Dynamicweb
namespace Dynamicweb.Examples.CSharp.Notifications.Standard
{
    [Extensibility.Subscribe(Dynamicweb.Notifications.Standard.Page.AfterOutput)]
    public class PageAfterOutputObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null)            
                return;

            Dynamicweb.Notifications.Standard.Page.AfterOutputArgs afterOutputArgs = (Dynamicweb.Notifications.Standard.Page.AfterOutputArgs)args;
            afterOutputArgs.template.SetTag("myTag", "some text");
        }
    }
}
Namespace Notifications.Standard
    <Extensibility.Subscribe(Global.Dynamicweb.Notifications.Standard.Page.AfterOutput)> _
    Public Class PageAfterOutputObserver
        Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber

        Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs)
            If args Is Nothing Then
                Return
            End If

            Dim afterOutputArgs As Global.Dynamicweb.Notifications.Standard.Page.AfterOutputArgs = DirectCast(args, Global.Dynamicweb.Notifications.Standard.Page.AfterOutputArgs)
            afterOutputArgs.template.SetTag("myTag", "some text")
        End Sub
    End Class
End Namespace
Remarks
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Page.AfterOutputArgs
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Standard.Page Class
Standard.Page Members

Send Feedback