描述:

有的时候,回车时,不想触发 页面上的保存按钮的事件。

有一种最简单的解决 方法:

一,把form增加一个不用的默认button

 <form >

二,页面隐藏此按钮

   <div style="display: none">
        <asp:Button ID="Button1" runat="server" Text="屏蔽回车/> 
  </div>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-11-13
  • 2021-10-05
相关资源
相似解决方案