FAQ Database Discussion Community


The view must derive from WebViewPage, or WebViewPage, @Html.MvcSiteMap().SiteMapPath() error

c#,asp.net-mvc,mvcsitemap
I have a problem with running MVC application (which is set as class library). On IIS server I have created new ApplicationPool for my webSite (on framework v. 4.0). I have installed patch for framework 4.0 from microsoft website: Update 4.0.2 for Microsoft .NET Framework 4 – Design-time Update for...

Create SiteMap in ASP.NET MVC

asp.net-mvc,routing,sitemap,mvcsitemap
I Want Create SiteMap For ASP.NET MVC Site. I Write This Code [XmlRoot("urlset", Namespace = "http://www.sitemaps.org/schemas/sitemap/0.9")] public class Sitemap { private ArrayList _map; public Sitemap() { _map = new ArrayList(); } [XmlElement("url")] public Location[] Locations { get { Location[] items = new Location[_map.Count]; _map.CopyTo(items); return items; } set { if...

delete a node from sitemap xml

c#,sitemap,mvcsitemap,google-sitemap
I have sitemap format as below. I want to delete a complete node that I find loc. For example: Where a node has <loc>with a value of http://www.my.com/en/flight1. I want to delete the <url> node and his child I want to delete loc than lastmod than priority and than changefreq...

MvcSiteMapProvider - Enhanced bootstrap dropdown menu

c#,twitter-bootstrap,asp.net-mvc-5,mvcsitemapprovider,mvcsitemap
I'm trying to build a menu like this: For reference I'm using this library https://github.com/behigh/bootstrap_dropdowns_enhancement @Html.MvcSiteMap().Menu("BootstrapMenuHelperModel") @model MenuHelperModel <nav class="navbar" role="navigation"> <div class="container-fluid menu-container"> <div class="collapse navbar-collapse"> <div class="navbar-header"> <span class="navbar-brand">FAR BACKOFFICE</span> </div> <ul class="nav nav-pills"> @foreach (var node in Model.Nodes) { if...