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.

適用於

另請參閱