随笔分类 -  02-C#

摘要:[\u0391-\uFFE5]匹配双字节字符(汉字+符号)[\u4e00-\u9fa5]注意只匹配汉字,不匹配双字节字符代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///截取指定长度的字符串(Unicode... 阅读全文
posted @ 2010-01-07 19:38 angushine 阅读(521) 评论(0) 推荐(0)
摘要:封装一个log4net日志管理类[代码]log4net.config文件[代码] 阅读全文
posted @ 2009-10-29 16:15 angushine 阅读(1955) 评论(2) 推荐(1)
摘要:(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名(new StackTrace()).GetFrame(1).GetMethod().ReflectedType.Name; // 类名 阅读全文
posted @ 2009-10-29 14:59 angushine 阅读(4437) 评论(0) 推荐(1)
摘要:[代码][代码] 阅读全文
posted @ 2009-10-16 17:34 angushine 阅读(1209) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-16 17:27 angushine 阅读(227) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-16 17:25 angushine 阅读(166) 评论(0) 推荐(0)
摘要:Request.Form:获取以POST方式提交的数据(接收Form提交来的数据);Request.QueryString:获取地址栏参数(以GET方式提交的数据)Request:包含以上两种方式(优先获取GET方式提交的数据),它会在QueryString、Form、ServerVariable中都按先后顺序搜寻一遍。 而且有时候也会得到不同的结果。如果你仅仅是需要Form中的一个数据,但是你使... 阅读全文
posted @ 2009-10-12 18:24 angushine 阅读(911) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-10-12 17:49 angushine 阅读(828) 评论(0) 推荐(0)
摘要:有四个基类,WebUC继承System.Web.UI.MasterPage,WebPage继承System.Web.UI.Page,AuthPage继承WebPage,WebMasterPage继承System.Web.UI.MasterPage,页面default.aspx,使用继承了WebMasterPage模板,同时该页面继承AuthPage,那么这些类的protected override... 阅读全文
posted @ 2009-06-11 09:24 angushine 阅读(393) 评论(0) 推荐(0)
摘要:[代码]在更新的过程中可能出现如下错误:Data Type mismatch in criteria expression.Concurrency violation: the UpdateCommand affected 0 of the expected 1 records注意:数据类型要正确、SQL中的参数要和加入command中的参数的顺序一致。访问类型名称数据库数据类型OLE DB 类型... 阅读全文
posted @ 2009-06-01 22:57 angushine 阅读(1032) 评论(0) 推荐(0)
摘要:安装AspNetMVC1-RC2出错,错误提示如下: Microsoft ASP.NET MVC 1.0 RC2 Setup Wizard ended prematurely Microsoft ASP.NET MVC 1.0 RC2 Setup Wizard ended prematurely because of an error. Your system has not been modif... 阅读全文
posted @ 2009-03-05 18:12 angushine 阅读(413) 评论(0) 推荐(0)
摘要:http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/ 阅读全文
posted @ 2009-02-17 17:52 angushine 阅读(260) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Runtime.InteropServices; using System.Text; namespace Win.Cfg { /// ... 阅读全文
posted @ 2009-01-24 08:51 angushine 阅读(300) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using ... 阅读全文
posted @ 2008-12-29 17:23 angushine 阅读(211) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Login Form Username ... 阅读全文
posted @ 2008-12-25 20:20 angushine 阅读(1005) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.... 阅读全文
posted @ 2008-12-25 20:08 angushine 阅读(507) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> First Name ... 阅读全文
posted @ 2008-12-25 20:07 angushine 阅读(945) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Loading 其它内容 using System; using System.Collections.Gener... 阅读全文
posted @ 2008-12-12 16:08 angushine 阅读(407) 评论(0) 推荐(0)
摘要:如取出TabId和TabName不重复的。 DataTable dt; dt.DefaultView.ToTable(true, new string[] { "TabId", "TabName" }); 阅读全文
posted @ 2008-12-07 15:12 angushine 阅读(277) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// /// Summary description for BaseBLL. /// public class BaseBLL { private string connectionSt... 阅读全文
posted @ 2008-12-06 06:28 angushine 阅读(389) 评论(0) 推荐(0)