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.

備註

使用ClientScript屬性來取得ClientScriptManager可用來管理、 註冊和加入網頁中的指令碼的物件。Use 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.

ClientScriptManager類別的新ASP.NET 2.0ASP.NET 2.0,並取代Page類別來管理目前已被取代的指令碼的方法。The ClientScriptManager class is new in ASP.NET 2.0ASP.NET 2.0 and replaces Page class methods for managing scripts that are now deprecated.

適用於

另請參閱