Page.Title 屬性

定義

取得或設定頁面的標題。Gets or sets the title for the page.

public:
 property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string Title { get; set; }
member this.Title : string with get, set
Public Property Title As String

屬性值

頁面的標題。The title of the page.

屬性

例外狀況

Title 屬性需要網頁上擁有標題控制項。The Title property requires a header control on the page.

備註

使用 [Title] 屬性,在傳送至要求瀏覽器的 HTML 標頭中設定頁面標題。Use the Title property to set the page title in the HTML header sent to the requesting browser.

注意

此頁面必須包含具有屬性 runat="server"head 元素,否則不會轉譯標題。The page must contain a head element that has the attribute runat="server", otherwise the title will not render.

適用於

另請參閱