ASP.NET: Having common Page title in master page with each page adding page-specific title?
问题 My master page looks like: <head runat="server"> <title> <asp:ContentPlaceHolder ID="PageTitlePlaceHolder" runat="server" /> </title> Content pages look like: <asp:Content ID="TitleContent1" ContentPlaceHolderID="PageTitlePlaceHolder" runat="Server"> My Page </asp:Content> This works by placing the content page specific title on the page ("My Page" in this example). Now I want to add a global prefix to the title in my master page for the site name. So I want: <head runat="server"> <title>