摘要: ^[\u4e00-\u9fa5]{1,20}$ 这个是 验证中文的正则表达式 System.Text.Encoding.Default.GetByteCount( strString );--返回字节数 //判断字符串是否是数字 string str1=this.textBox1.Text.Trim(); if(Regex.IsMatch(str1,@"^\d+$")) { MessageBox... 阅读全文
posted @ 2005-09-03 18:27 浪剑 阅读(2627) 评论(4) 推荐(0) 编辑
摘要: 提交查询时,报错显示"从客户端检测到有潜在危险的Request.Form 值"(.Net Framework1.1)的解决方案:1、web.config文件后面加入这一句: 示例: 2、在*.aspx文件头的Page中加入validateRequest="false",示例如下: 阅读全文
posted @ 2005-09-03 18:22 浪剑 阅读(301) 评论(0) 推荐(0) 编辑