ScriptManagerProxy Web 服务器控件声明性语法

更新:2007 年 11 月

通过该语法,当父元素中已经定义 ScriptManager 控件时,内容页和用户控件等嵌套组件可以在页面中添加脚本和服务引用。

<asp:ScriptManagerProxy
        AuthenticationService-Path="uri"
        EnableTheming="True|False"
    EnableViewState="True|False"
    ID="string"
    OnDataBinding="DataBinding event handler"
    OnDisposed="Disposed event handler"
    OnInit="Init event handler"
    OnLoad="Load event handler"
    OnPreRender="PreRender event handler"
    OnUnload="Unload event handler"
    ProfileService-LoadProperties="string"
    ProfileService-Path="uri"
        RoleService-LoadRoles="True|False"
    RoleService-Path="uri"
    runat="server"
    SkinID="string"
    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:ScriptManagerProxy>

备注

有关更多信息,请参见 ScriptManagerProxy 类概述。

请参见

概念

ASP.NET 服务器控件

参考

ScriptManagerProxy

其他资源

Web 服务器控件语法