Frank
Frank

Reputation: 11

SiteMapPath using MVC 3 Razor

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

Answers (2)

Maidot
Maidot

Reputation: 386

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

here

Upvotes: 1

alexn
alexn

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

Related Questions