Hi Vagelis Kretsimos,
You can do that using the SiteMap and a user control. In the user control, just create a label (or another control that you want to display the title in) and in on Page_Load set its text property by getting it from the sitemap. Here is my user control:
|<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SampleText.ascx.cs" Inherits="UserControls_SampleText" %> |
|<asp:Label ID="title" runat="server"></asp:Label> |
|if (SiteMap.CurrentNode != null) |
| this.title.Text = SiteMap.CurrentNode.Title; |
Note that you need the null check, in case you use the control in a template, where Sitemap.CurrentNode returns null. I think this would be its most common usage.
the Telerik team