随笔分类 - .net
摘要:一 Memcached服务器端的安装 (此处将其作为系统服务安装) 下载文件:memcached 1.2.1 for Win32 binaries (Dec 23, 2006) 1 解压缩文件到c:\memcached 2 命令行输入 'c:\memcached\memcached.exe -d i...
阅读全文
摘要:1 /// 2 /// Verifies that a string is in valid e-mail format 3 /// 4 /// Email to verify 5 /// true if the ...
阅读全文
摘要:1 public class HtmlGengerate 2 { 3 public void GengerateHtml() 4 { 5 // 声明控件的正则表达式 6 Regex regRepe...
阅读全文
摘要:首先在配置文件web.config或者app.config中定义配置段: 在configuration配置节中配置Country: 定义CountrySection类: 1 public cl...
阅读全文
摘要:1 /// 2 /// 通过数字求金额的大写 3 /// decimal p=123758.21m; 4 /// Response.Write (new CommonFunction().ToUpper(p...
阅读全文
摘要:首先定义水印生成类: public class ImageWatermark { public static Image CreateWatermark( string fileName, string markStr, ...
阅读全文
摘要:publicclassOrdersSection:ConfigurationSection { [ConfigurationProperty("companyID",IsRequired=true)] publicstringCompanyID { get { return(st...
阅读全文
摘要:' CommandName="DelCmd" OnClientClick="return confirm('您确定要删除吗?');">删除
阅读全文
摘要:首先需要定义文件信息记录类: 1 public class FileData 2 { 3 private string myFullName; 4 private string myName; 5 private string myEx...
阅读全文
摘要:Response.Write("javascript:alert('hahahah!')");ServerControl.Attributes.Add("onclike"," return confirm('are you sure?')");Page.RegisterStartupScript("...
阅读全文
摘要:1 public static void ExportExcel() 2 { 3 StringBuilder sb = new StringBuilder(); 4 sb.Append(""); 5 ...
阅读全文