1

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.

tereško
  • 58,060
  • 25
  • 98
  • 150
Frank
  • 11
  • 1
  • 3

2 Answers2

1

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.

alexn
  • 57,867
  • 14
  • 111
  • 145
1

I found a solution that shows how to use the @SiteMap sytax in Razor View :)

here

Barrie Reader
  • 10,647
  • 11
  • 71
  • 139
Maidot
  • 386
  • 4
  • 11