2006年6月25日

ASP.NET2.0中配置文件的加密与解密

摘要: 首先添加引用: using System.Web.Configuration;加密操作如下: private void ProtectSection(string sectionName, string provider) { Configuration config = WebConfigurationManager. Op... 阅读全文

posted @ 2006-06-25 18:35 Daniel Pang 阅读(2006) 评论(1) 推荐(0) 编辑

Using CustomProperties of CodeSmith

摘要: 1、FileNameEditor FileNameEditor类可以让我们为用户提供一个标准的打开文件的对话框和保存文件的对话框,当然在使用FileNameEditor之前我们得先导入CodeSmith.CustomProperties程序集,如下: 如何在我们得模板中使用FileNameEditor呢?如下: 这样,当我们执行我们得模板得时候,就可以看到UserFileNam... 阅读全文

posted @ 2006-06-25 13:53 Daniel Pang 阅读(930) 评论(0) 推荐(0) 编辑

Enterprise Library 2.0 -- Exception Handing Applcation Block

摘要: Enterprise Library 2.0 中的 Exception Handing Applcation Block 为我们开发人员以及设计人员提供了一个一致的方法去处理我们整个企业级应用程序的每个层次上的异常 阅读全文

posted @ 2006-06-25 13:15 Daniel Pang 阅读(3596) 评论(6) 推荐(0) 编辑

导航