.NET 4, C#
Using this code
Page.Title = SiteMap.CurrentNode.Url;
returns an error:
Object reference not set to an instance of an object
The test cs - file ONLY contains this code line in the Page_Load Event.
In fact SiteMap.CurrentNode.Url is not null, it contains a string.
How do I create an instance of this sitemap object?
Or do we have to initialize SiteMap during Global.asax?
View Complete Post