Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ASP.NET超链接作为updatepanel触发器_Asp.net_Html_Ajax_Button_Updatepanel - Fatal编程技术网

ASP.NET超链接作为updatepanel触发器

ASP.NET超链接作为updatepanel触发器,asp.net,html,ajax,button,updatepanel,Asp.net,Html,Ajax,Button,Updatepanel,我想在单击超链接时触发我的updatepanel更改,但我收到一个错误,错误是: Control with ID 'X' being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler. 如果我使用ASP按钮,那么一切都正常工

我想在单击超链接时触发我的updatepanel更改,但我收到一个错误,错误是:

Control with ID 'X' being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler.
如果我使用ASP按钮,那么一切都正常工作

我的代码:

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">
<Triggers>
    <asp:AsyncPostBackTrigger controlid="UpdateButton2" eventname="Click" />
</Triggers>
    <ContentTemplate>
        <asp:Repeater ID="rptDossiers" runat="server">
            <ItemTemplate>
                ...
            </ItemTemplate>
        </asp:Repeater>

        <asp:HyperLink NavigateUrl="#" runat="server" id="UpdateButton2" onclick="tousLesDossiers_Click">
            Tous les Dossiers
        </asp:HyperLink>
        <%--<asp:Button runat="server" id="UpdateButton2" onclick="tousLesDossiers_Click" text="Update" />--%>            
    </ContentTemplate>
</asp:UpdatePanel>

...
托斯档案
有什么建议吗


谢谢

没有绑定到超链接控件的
单击事件处理程序
您必须使用
链接按钮
来代替

没有绑定到超链接控件的
单击事件处理程序,您必须使用
链接按钮