How to set Page's Title from a web content page in ASP.NET 3.5

后端 未结 7 1466
长情又很酷
长情又很酷 2021-02-15 07:52

I\'ve read through quite a bit of posts/articles on how to do this and I still am not getting the page title set from the content page. My pages render OK except I can\'t get th

7条回答
  •  北荒
    北荒 (楼主)
    2021-02-15 08:25

    more simple solution in Master page <%: Page.Title %> - the main title goes here

    in content page first line of it <%@ Page Title="Your Title" Language="C#" MasterPageFile="~/_masterpages/... etc

提交回复
热议问题