zoukankan      html  css  js  c++  java
  • ASP.NET 回车提交网页

    protected void Page_Load(object sender, EventArgs e)        

    {            

    TextBox1.Focus();            

    //回车提交            

    TextBox1.Attributes.Add("onkeydown", @"if(event.which || event.keyCode)

                                                         {

                                                             if ((event.which == 13) || (event.keyCode == 13))

                                                                 {

                                                                     document.getElementById('"+

        Button1.UniqueID +

        @"').click();

                                                                     return false;

                                                                 }

                                                         }

                                                         else

                                                         {

                                                             return true;

                                                         }; "

                                        );

    }

  • 相关阅读:
    Windows 网络监测ping IP输出时间
    python
    遇见问题汇总
    在路上积累
    Condition
    ReentrantReadWriteLock
    AbstractQueuedSynchronizer
    jmeter使用
    使用VisualVM监控java进程
    CNVD漏洞证书(2)
  • 原文地址:https://www.cnblogs.com/mane/p/2285599.html
Copyright © 2011-2022 走看看