This question is locked. New answers and comments are not allowed.
Hi
I'm trying out the MVC extensions, but I can't make the menu work using the example as I get an error on the "SourceCodeFile" line. What do I need to import to make this work? (I'm using VS2010 and .net 4)
Re
Dennis
I'm trying out the MVC extensions, but I can't make the menu work using the example as I get an error on the "SourceCodeFile" line. What do I need to import to make this work? (I'm using VS2010 and .net 4)
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Telerik.Web.Mvc; using Telerik.Web.Mvc.UI; namespace Menu.Controllers { public class MenuController : Controller { [PopulateSiteMap(SiteMapName = "sample", ViewDataKey = "sample")] [SourceCodeFile("Sitemap", "~/sample.sitemap")] public ActionResult SiteMapBinding() { if (!SiteMapManager.SiteMaps.ContainsKey("sample")) { SiteMapManager.SiteMaps.Register<XmlSiteMap>("sample", sitmap => sitmap.LoadFrom("~/sample.sitemap")); } return View(); } } }Re
Dennis