ASP.NET中限制中文的输入

2010-08-28 10:50:27来源:西部e网作者:

TextBox1.Attributes.Add("onkeyup","value=value.replace(/[\\u4E00-\\u9FA5\\uFF00-\\uFFFF]/g,'')");
TextBox1.Attributes.Add("onbeforepaste","clipboardData.setData('text',clipboardData.getData('text').replace(/[\\u4E00-\\u9FA5\\uFF00-\\uFFFF]/g,''))");
关键词:ASP.NET

赞助商链接: