Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GlobalMenu
- {
- private string _baseurl;
- public string baseurl
- {
- get { return _baseurl; }
- set
- {
- _baseurl = value;
- }
- }
- }
- protected override void OnActionExecuted(ActionExecutedContext filterContext)
- {
- string baseurl = Properties.Settings.Default.baseurl;
- GlobalMenu menumodel = new GlobalMenu();
- menumodel.baseurl = baseurl;
- ViewData["menudata"] = menumodel;
- base.OnActionExecuted(filterContext);
- }
- <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyApp.Web.Models.GlobalMenu>" %>
- <%Html.RenderPartial("ViewGlobalMenu", (MyApp.Web.Models.GlobalMenu)ViewData["menudata"]); %>
Add Comment
Please, Sign In to add comment