Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

SiteMapResolve Event does not fire

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 15 Feb 2006 17:58 GMT
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
Jay - 15 Feb 2006 18:53 GMT
I rebooted my pc and the event started working.  That is disconcerting.
However, I have learned that the SiteMapResolve event does not fire when the
URL is external.  Is this correct?

I want a general way to handle some things each time a menuitem is clicked
(before transfering to the new page) whether the URL is internal or
external.

Any good suggestions.  I can think of some hacks but I want this to be
simple and straight forward.

Jay Lindsay

>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
[quoted text clipped - 29 lines]
>
> End Function

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.