Page.Title 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
負責取得或設定頁面標題。
public:
property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string Title { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Title : string with get, set
Public Property Title As String
屬性值
頁面的標題。
- 屬性
例外狀況
該 Title 屬性需要頁面上的標頭控制項。
備註
使用該 Title 屬性在發送給請求瀏覽器的 HTML 標頭中設定頁面標題。
備註
頁面必須包含 head 具有屬性 runat="server"的元素,否則標題無法呈現。