共用方式為


ScriptManager Web 伺服器控制項宣告式語法

更新:2007 年 11 月

管理 ASP.NET AJAX 指令碼程式庫和指令碼檔、部分頁面呈現,以及 Web 與應用程式服務的用戶端 Proxy 類別產生。

<asp:ScriptManager
        AllowCustomErrorsRedirect="True|False"
    AsyncPostBackErrorMessage="string"
    AsyncPostBackTimeout="integer"
    AuthenticationService-Path="uri"
        EnablePageMethods="True|False"
        EnablePartialRendering="True|False"
    EnableScriptGlobalization="True|False"
    EnableScriptLocalization="True|False"
        EnableTheming="True|False"
        EnableViewState="True|False"
    ID="string"
        LoadScriptsBeforeUI="True|False"
    OnAsyncPostBackError="AsyncPostBackError event handler"
    OnDataBinding="DataBinding event handler"
    OnDisposed="Disposed event handler"
    OnInit="Init event handler"
    OnLoad="Load event handler"
    OnPreRender="PreRender event handler"
    OnResolveScriptReference="ResolveScriptReference event handler"
        OnUnload="Unload event handler"
    ProfileService-LoadProperties="string"
    ProfileService-Path="uri"
        RoleService-LoadRoles="True|False"
    RoleService-Path="uri"
    runat="server"
        ScriptMode="Auto|Inherit|Debug|Release"
    ScriptPath="string"
    SkinID="string"
    SupportsPartialRendering="True|False"
        Visible="True|False"
>
        <AuthenticationService
            Path="uri"
        />
        <ProfileService
            LoadProperties="string"
            Path="uri"
        />
        <RoleService
                        LoadRoles="True|False"
            Path="uri"
        />
                <Scripts>
                        <asp:ScriptReference
                            Assembly="string"
                                IgnoreScriptPath="True|False"
                                Name="string"
                                NotifyScriptLoaded="True|False"
                                Path="string"
                                ResourceUICultures="string"
                                ScriptMode="Auto|Debug|Inherit|Release"
                        />
                </Scripts>
                <Services>
                        <asp:ServiceReference
                                InlineScript="True|False"
                                Path="string"
                        />
                </Services>
</asp:ScriptManager>

備註

如需詳細資訊,請參閱 ScriptManager 類別概觀。

請參閱

概念

ASP.NET 伺服器控制項

參考

ScriptManager

其他資源

Web 伺服器控制項語法