Page.ClientScript Page.ClientScript Page.ClientScript Page.ClientScript Property

定義

取得 ClientScriptManager 物件,這個物件可用來管理、註冊和加入指令碼至頁面。Gets a ClientScriptManager object used to manage, register, and add script to the page.

public:
 property System::Web::UI::ClientScriptManager ^ ClientScript { System::Web::UI::ClientScriptManager ^ get(); };
public System.Web.UI.ClientScriptManager ClientScript { get; }
member this.ClientScript : System.Web.UI.ClientScriptManager
Public ReadOnly Property ClientScript As ClientScriptManager

屬性值

範例

如需範例,請參閱ClientScriptManager類別總覽主題。For an example, see the ClientScriptManager class overview topic.

備註

使用屬性,即可取得可用ClientScriptManager來管理、註冊及將腳本新增至網頁的物件。 ClientScriptUse the ClientScript property to get a ClientScriptManager object that can be used to manage, register, and add script to a Web page. 如需詳細資訊,請參閱 ClientScriptManager 類別。For more information, see the ClientScriptManager class.

類別是的ASP.NET 2.0ASP.NET 2.0新功能,並Page取代類別方法來管理現在已被取代的腳本。 ClientScriptManagerThe ClientScriptManager class is new in ASP.NET 2.0ASP.NET 2.0 and replaces Page class methods for managing scripts that are now deprecated.

適用於

另請參閱