Reputation: 11
I'm currently converting a project from Asp.Net MVC 2 to MVC 3 and I'm having trouble finding out how to do this...
asp:SiteMapPath ID="SiteMapPath1" runat="server"
using Razor?
I've been playing with @SiteMap but other than getting the current node @SiteMap.CurrentNode.ToString()
I'm having trouble finding a way to get the path.
Upvotes: 1
Views: 5184
Reputation: 386
I found a solution that shows how to use the @SiteMap
sytax in Razor View :)
Upvotes: 1
Reputation: 58962
Unfortunately, razor does not support the notion of controls. You need to use the good old webforms engine for this or wrap it in a html helper function.
Upvotes: 1