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

后端 未结 7 1655
长情又很酷
长情又很酷 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条回答
  •  萌比男神i
    2021-02-15 08:43

    to combine Page Title with your Default MasterPage Title you can use the standard template which default ASP.NET web app template uses.

    
         <%: Page.Title %> | Portal Main site Name 
    

    this ways this page.Title is read form individual pages

    <%@ Page Title="Virtual Machines" ...>
    

提交回复
热议问题