Mik*_*ogh 6 asp.net asyncpostbackerror
我在.aspx文件中有这个代码
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
<ContentTemplate>
<asp:PlaceHolder runat="server" ID="Placeholder1" EnableViewState="false"></asp:PlaceHolder>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ShowVotePanelBtn" EventName="ShowVoteClick" />
</Triggers>
</asp:UpdatePanel>
Run Code Online (Sandbox Code Playgroud)
我收到这个错误:
Could not find an event named 'ShowVoteClick' on associated control 'ShowVotePanelBtn' for the trigger in UpdatePanel 'UpdatePanel1'.
我不明白这个消息.该控件具有相应的单击事件.
任何的想法?
Bri*_*les 11
而是使用:
EventName="Click"
Run Code Online (Sandbox Code Playgroud)
这将引发您Click的LinkButton控制事件,如其OnClick属性所定义.在您的情况下,您的ShowVoteClick活动.
| 归档时间: |
|
| 查看次数: |
5255 次 |
| 最近记录: |