共用方式為


Page.Title 屬性

定義

負責取得或設定頁面標題。

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"的元素,否則標題無法呈現。

適用於

另請參閱