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 魏绰 阅读(188) 评论(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 魏绰 阅读(331) 评论(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 魏绰 阅读(1146) 评论(0) 推荐(0)

导航