1
我無法設置我的ASP.NET頁面的標籤標題。嵌套ASP.NET主頁中的標題
我有嵌套的母版頁。我可以成功設置標籤圖標,但標題始終顯示「主頁」。我究竟做錯了什麼?
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Topbar.master.cs" Inherits="WebApplication1.Masters.Topbar" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>SomeTitle</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="~/Styles/public.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" href="~/Images/ionicon.ico" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
....
<%@ Master Language="C#" MasterPageFile="~/Masters/Topbar.Master" AutoEventWireup="true"
CodeBehind="Public.Master.cs" Inherits="WebApplication1.PublicMaster" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
啊!我看到我已經有了,設置爲「主頁」,它會覆蓋主標記