Asp.net 文本框全选的实现

yipeiwu_com6年前PHP代码库
一、鼠标滑过textbox全选
前台:
<asp:TextBox runat="server" onMouseOver="this.focus();this.select()">dsdsds</asp:TextBox>

<asp:TextBox runat="server" onMouseOver="this.focus()" onFocus="this.select()">dsdsds</asp:TextBox>
后台:
this.txtbox1.Attributes.Add("onMouseOver", "this.focus();this.select();");

二、得到焦点
后台:
textbox1.Focus();
textbox1.Attributes.Add("onfocus","this.select()");

相关文章

thinkphp 字母函数详解T/I/N/D/M/A/R/U

1、 /** * 获取模版文件 格式 资源://模块@主题/控制器/操作 * @param string $template 模版资源地址 * @param string $l...

一个简单且很好用的php分页类

复制代码 代码如下:class Page {    // 分页栏每页显示的页数    public $rollPage = 6...

php5 non-thread-safe和thread-safe这两个版本的区别分析

先从字面意思上理解,None-Thread Safe就是非线程安全,在执行时不进行线程(thread)安全检查;Thread Safe就是线程安全,执行时会进行线程(thread)安全检...

PHP常见字符串处理函数用法示例【转换,转义,截取,比较,查找,反转,切割】

本文实例分析了PHP常见字符串处理函数用法。分享给大家供大家参考,具体如下: <?php $s = "hello world"; //整理 echo 'trim();...

解决FastCGI 进程超过了配置的活动超时时限的问题

解决FastCGI 进程超过了配置的活动超时时限的问题

近日,需要满足测试需求,进行大数据并发测试时,报出【HTTP 错误 500.0 - Internal Server Error E:\PHP\php-cgi.exe - FastCGI...