01 2009 档案

判断用户名是不过度,区分字符和汉字
摘要:byte[] bytName= System.Text.Encoding.GetEncoding("GB2312").GetBytes(txtUserName.Text.Trim()); if (bytName.Length > 10 || bytName.Length < 4) { ... 阅读全文

posted @ 2009-01-20 15:14 魏绰 阅读(183) 评论(0) 推荐(0) 编辑

截取指定长度的字符串,区分汉字和字符
摘要:using System.Text; using System.Text.RegularExpressions; int current = 30; int location_http = lblContext.Text.IndexOf("http"); int location_img = lblContext.... 阅读全文

posted @ 2009-01-20 15:13 魏绰 阅读(318) 评论(0) 推荐(0) 编辑

RadioButtonList 绑定图片
摘要:(1)直接从文件夹中读取 string dirpath = Server.MapPath("Emoticons"); DirectoryInfo dire = new DirectoryInfo(dirpath); FileInfo[] file1 = dire.GetFiles("*.gif"); ... 阅读全文

posted @ 2009-01-15 11:33 魏绰 阅读(1135) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示