// C#
protected override void OnInit(System.EventArgs e)
{
base.OnInit(e);
// Setting Page Title from SiteMap
SiteMapNode node = SiteMap.CurrentNode;
if (node != null && !string.IsNullOrEmpty(node.Title))
{
Page.Title = "App Name | " + node.Title;
}
}
' VB.NET
Protected Overrides Sub OnInit(e As System.EventArgs)
MyBase.OnInit(e)
' Setting Page Title from SiteMap
Dim node As SiteMapNode = SiteMap.CurrentNode
If node IsNot Nothing AndAlso Not String.IsNullOrEmpty(node.Title) Then
Page.Title = "App Name | " + node.Title
End If
End Sub
The above function adds the associated title associated with the url of the page.