惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - 北极冰点水

如何用C#代码设置文件的附加属性啊 例如author, subject 这些啊 怎样在XML中使用&和字符 ViewState深入,Textbox,Checkbox,CheckboxList,RadioButtonList 不能禁止ViewState textbox web控件 根本无视enableviewsate 是否true 或者false, 依然能够相应用户的输入 什么是One-Click技术 未将对象引用到对象的实例 asp.net执行.sql文件 和 Cmd 模式执行sql文件 - 北极冰点水 后期维护成本 用.net开发不同操作系统下应用的winform的size大小问题 怎样让用户可以跟踪查询数据库数据变化 在MembershipProvider中,现在的版本中MobileAlias 是没用的 也谈下vs2005中的gridview Vs2005 调试状态下的异常处理是比2003要好多了,布局图片也漂亮 vs2005 Gridview 得问题??? vs2005的数据库连接问题 2.0 Master Page C# 的 Delegate Type 安装SqlServer2005 Express Edit版 和 Vs 2005 CTP版 快速”格式化和常规格式化之间的区别
在.NET中使TextBox只能输入数字的方法(key 和 clipboardData) - 北极冰点水
北极冰点水 · 2007-04-10 · via 博客园 - 北极冰点水

在.NET中使TextBox只能输入数字的方法(key 和 clipboardData)

-- Number TextBox
<asp:TextBox ID="tbNumberInput" runat="server" onkeypress="return isNumberKey(this)" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"></asp:TextBox>
 
function isNumberKey(evt)
{
 var charCode = (evt.which) ? evt.which : event.keyCode
 if (charCode > 31 && (charCode < 48 || charCode > 57))
 {
   
    return false;
   
 }
 return true;
}

posted on 2007-04-10 18:04  北极冰点水  阅读(1493)  评论(2)    收藏  举报