随笔分类 -  .net

摘要:一 Memcached服务器端的安装 (此处将其作为系统服务安装) 下载文件:memcached 1.2.1 for Win32 binaries (Dec 23, 2006) 1 解压缩文件到c:\memcached 2 命令行输入 'c:\memcached\memcached.exe -d i... 阅读全文
posted @ 2013-04-16 20:11 自然去留 阅读(443) 评论(0) 推荐(0)
摘要:1 /// 2 /// Verifies that a string is in valid e-mail format 3 /// 4 /// Email to verify 5 /// true if the ... 阅读全文
posted @ 2013-03-17 08:36 自然去留 阅读(208) 评论(0) 推荐(0)
摘要:1 public class HtmlGengerate 2 { 3 public void GengerateHtml() 4 { 5 // 声明控件的正则表达式 6 Regex regRepe... 阅读全文
posted @ 2013-03-10 10:05 自然去留 阅读(154) 评论(0) 推荐(0)
摘要:首先在配置文件web.config或者app.config中定义配置段: 在configuration配置节中配置Country: 定义CountrySection类: 1 public cl... 阅读全文
posted @ 2013-02-16 11:32 自然去留 阅读(183) 评论(0) 推荐(0)
摘要:1 /// 2 /// 通过数字求金额的大写 3 /// decimal p=123758.21m; 4 /// Response.Write (new CommonFunction().ToUpper(p... 阅读全文
posted @ 2013-01-06 11:52 自然去留 阅读(567) 评论(0) 推荐(0)
摘要:首先定义水印生成类: public class ImageWatermark { public static Image CreateWatermark( string fileName, string markStr, ... 阅读全文
posted @ 2012-12-10 20:34 自然去留 阅读(180) 评论(0) 推荐(0)
摘要:publicclassOrdersSection:ConfigurationSection { [ConfigurationProperty("companyID",IsRequired=true)] publicstringCompanyID { get { return(st... 阅读全文
posted @ 2012-10-04 18:06 自然去留 阅读(649) 评论(0) 推荐(0)
摘要:' CommandName="DelCmd" OnClientClick="return confirm('您确定要删除吗?');">删除 阅读全文
posted @ 2012-08-10 13:20 自然去留 阅读(152) 评论(0) 推荐(0)
摘要:首先需要定义文件信息记录类: 1 public class FileData 2 { 3 private string myFullName; 4 private string myName; 5 private string myEx... 阅读全文
posted @ 2012-08-10 12:23 自然去留 阅读(214) 评论(0) 推荐(0)
摘要:Response.Write("javascript:alert('hahahah!')");ServerControl.Attributes.Add("onclike"," return confirm('are you sure?')");Page.RegisterStartupScript("... 阅读全文
posted @ 2012-08-07 21:16 自然去留 阅读(723) 评论(0) 推荐(0)
摘要:1 public static void ExportExcel() 2 { 3 StringBuilder sb = new StringBuilder(); 4 sb.Append(""); 5 ... 阅读全文
posted @ 2012-08-05 11:40 自然去留 阅读(182) 评论(0) 推荐(0)