Is Anyone Using MVCSiteMap 3 with VB?

Mar 25, 2011 at 6:51 AM

I'm having a problem with the conversion of SiteMapPathHelperModel to VB

@Imports System.Web.Mvc.Html
@Imports System.Linq
@Imports MvcSiteMapProvider.Web.Html.Models

@ModelType SiteMapPathHelperModel

@For Each node In Model

    @Html.DisplayFor(Function(m) node)    
'The following does not like the  use of <>
    If node <> Model.Last() Then
            <text> &gt; </text>

    End If

Thanks in advance for your time
Mar 26, 2011 at 2:18 AM

When implementing the MVCSiteMap as follows

@Html.MvcSiteMap.SiteMapPath(" &gt; ")

The SiteMapPathHelperModel throws the following error that I can't seem to resolve.

Operator '<>' is not defined for types 'MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModel' and 'MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModel'.


Any Ideas?

Mar 26, 2011 at 5:43 AM


If Not node = Model.Last Then


End If

Mar 26, 2011 at 7:04 AM

Thanks, but it just changes the error to

Operator '=' is not defined for types 'MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModel' and 'MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModel'.

Does anyone know if this will even work with VB

I converted the entire MVCMusicStore to VB using MVC 3.0 and Razor, and it works fine but this project, even the newest build, seems to reference MVC 2.

Oct 11, 2011 at 1:06 PM
  If node IsNot Model.Last() Then
            @<text> &gt; </text>
    End If