【问题标题】:What will be the event name for checkbox checked event while using ajax trigger asynchronous call?使用 ajax 触发异步调用时,复选框选中事件的事件名称是什么?
【发布时间】:2010-12-19 12:55:59
【问题描述】:
<asp:ScriptManager ID="ScriptManager1" runat="server"/>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <Triggers>
          <asp:AsyncPostBackTrigger ControlID="chkStaySignedIn" EventName="Checked" /> 
      </Triggers>
      <ContentTemplate>
         <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtPassword"/>
     </ContentTemplate>
 </asp:UpdatePanel> 

EventName="Checked" 任何人都可以在使用 ajax 时向我提供完整的事件名称列表的链接。

【问题讨论】:

    标签: asp.net asp.net-ajax asp.net-3.5


    【解决方案1】:

    复选框的事件名称是CheckedChanged

    无论如何它都不是一个确定的列表,但this MSDN page 列出了回发的常用控件的默认事件名称。

    【讨论】:

    • 事件名称属性是否还支持其他事件?是否还有其他方法可以在 VS 中获取事件名称
    猜你喜欢
    • 2023-04-02
    • 2013-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-13
    • 1970-01-01
    相关资源
    最近更新 更多