• 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;

                                                         }; "

                                        );

    }

  • 相关阅读:
    haproxy redirect 重定向
    $res->header('Location')
    haproxy The Response line
    haproxy 配置和参数说明
    android应用中去掉标题栏的方法
    Linux 安装仿宋字体
    报表参数控件和报表内容自动居中设置方法
    zabbix 安装
    Chapter 2 Installing and Upgrading MySQL 安装和升级 MySQL
    将cantk runtime嵌入到现有的APP中
  • 原文地址:https://www.cnblogs.com/mane/p/2285599.html
Copyright © 2020-2023  润新知