SiteMapResolve Event does not fire



I have a simple wesite with a SiteMap. I am using the Menu Control for
navigation. Some of the URLs in the site map refer to external pages
outside of the website. When a user clicks on an "external" menu item I
need to indicate on my site that the user has accessed the external link.
To do this I am using the SiteMapResolve event of the SiteMap object using
the code below:

The SiteMapResolve event was firing just fine and then all of a sudden it
stopped working.

Any Ideas?

jay lindsay


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load

AddHandler SiteMap.SiteMapResolve, AddressOf Me.MyNavigation

End Sub

Private Function MyNavigation(ByVal sender As Object, ByVal e As
SiteMapResolveEventArgs) As SiteMapNode

Dim currentNode As SiteMapNode = SiteMap.CurrentNode.Clone(True)

'Dim x As String = currentNode.Title

'Dim y As String = currentNode.Url

Return (currentNode)

End Function




.



Relevant Pages

  • Re: Google SiteMap
    ... Dim nodes As SiteMapNodeCollection = _ ... (ByVal url As String) ... ByVal url As String) As String ... I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's ...
    (microsoft.public.dotnet.framework.aspnet)
  • Sitemap trimming with Forms auth (Active Directory)
    ... just to try get the sitemap working properly so I'm not worried about ... "FormsIdentity") Then ... Dim ticket As FormsAuthenticationTicket = ... Dim userData As String = ticket.UserData ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Solution - Treeview Site Navigation without ShowExpandCollapse
    ... store the sitemap in SQL server and allows you to use it in conjunction ... So does this open the url on the node as well as expand/collapse the ... Instead Treeview expands when a treenode text is clicked. ... Dim PathAs String ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Sitemap trimming with Forms auth (Active Directory)
    ... Sitemap will pick up these settings. ... The roles attribute in web.sitemap is ONLY for overriding the settings made in <authorization> ... Dim ticket As FormsAuthenticationTicket = ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • XPath syntax to check an attribute of all child nodes?
    ... I have sitemap like XML, of which every element has an attribute "url", e.g. ... I need to compare whether a string value contains the url or not. ...
    (microsoft.public.dotnet.xml)