Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using the following code to get page title of current page in Page Layout but it is not working.

<asp:Literal runat="server" text="<%$SPContext.Current.Item['Title']%>"></asp:Literal>

How to get page title in page layout?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Working on the client, no matter how mysteriously the HTML page's title was originally composed (if that's what you want):

  The title of the document is:
  <script type="text/javascript">


share|improve this answer
document.title prints the space - page name here. I use <script>document.write(document.getElementById("ctl00_PlaceHolderMain_wikiPageN‌​ameDisplay").innerHTML);</script> – Underverse Aug 18 at 8:18

What you need us the SharePointWebControl:TextField or SharePointWebControl:FieldProperty control.

Waldek has written a blog about it here:

share|improve this answer
Ok I will have a look at it tomorrow morning. – Frank Martin Aug 3 '13 at 17:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.