Page.Title Page.Title Page.Title Page.Title Property

定義

取得或設定頁面的標題。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.

注意

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

適用於

另請參閱