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;

                                                         }; "

                                        );

    }

  • 相关阅读:
    ZOJ 3631 Watashi's BG(dp+dfs)
    hdu 1506 Largest Rectangle in a Histogram(单调栈)
    csu 1392 Number Trick (数论)
    ACM 奋斗的小蜗牛
    ACM 16进制的简单运算
    ACM 交换输出
    ACM Longest Repeated Sequence
    ACM Arithmetic Expression
    ACM 素数
    ACM 无线网络覆盖
  • 原文地址:https://www.cnblogs.com/mane/p/2285599.html
Copyright © 2011-2022 走看看