I set a property in my custom controller wrapper in OnActionExecuting, how to pass to Site.Master?
- by Blankman
Say I have a class that wraps the Controller class:
public class MyController : Controller
{
public string SomeProperty {get;set;}
public override void OnActionExecuting(...)
{
SomeProperty = "hello";
}
}
Now in my site.master, I want to have access to the SomeProperty that I just set.
How can I do this?