Copied to clipboard

Flag this post as spam?

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


  • SNEHAL PATEL 1 post 21 karma points
    Jun 26, 2014 @ 21:15
    SNEHAL PATEL
    0

    Set Page Title using data retrieved by Razor macro

    I have a Razor Macro which fetches data from a separate table (not Umbraco) and displays content inside a Umbraco template, now since this is a macro the page title and meta have already been set by the Umbraco content page, how do i set the page title and meta tags via the macro code?

    tried setting ViewBag.Title in macro code but returns this error "The name 'Viewbag' does not exist in the current context"  

Please Sign in or register to post replies

Write your reply to:

Draft