随笔分类 - 02-C#
摘要:[\u0391-\uFFE5]匹配双字节字符(汉字+符号)[\u4e00-\u9fa5]注意只匹配汉字,不匹配双字节字符代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///截取指定长度的字符串(Unicode...
阅读全文
摘要:封装一个log4net日志管理类[代码]log4net.config文件[代码]
阅读全文
摘要:(new StackTrace()).GetFrame(1) // 0为本身的方法;1为调用方法(new StackTrace()).GetFrame(1).GetMethod().Name; // 方法名(new StackTrace()).GetFrame(1).GetMethod().ReflectedType.Name; // 类名
阅读全文
摘要:[代码][代码]
阅读全文
摘要:Request.Form:获取以POST方式提交的数据(接收Form提交来的数据);Request.QueryString:获取地址栏参数(以GET方式提交的数据)Request:包含以上两种方式(优先获取GET方式提交的数据),它会在QueryString、Form、ServerVariable中都按先后顺序搜寻一遍。 而且有时候也会得到不同的结果。如果你仅仅是需要Form中的一个数据,但是你使...
阅读全文
摘要:有四个基类,WebUC继承System.Web.UI.MasterPage,WebPage继承System.Web.UI.Page,AuthPage继承WebPage,WebMasterPage继承System.Web.UI.MasterPage,页面default.aspx,使用继承了WebMasterPage模板,同时该页面继承AuthPage,那么这些类的protected override...
阅读全文
摘要:[代码]在更新的过程中可能出现如下错误:Data Type mismatch in criteria expression.Concurrency violation: the UpdateCommand affected 0 of the expected 1 records注意:数据类型要正确、SQL中的参数要和加入command中的参数的顺序一致。访问类型名称数据库数据类型OLE DB 类型...
阅读全文
摘要:安装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...
阅读全文
摘要:http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Runtime.InteropServices; using System.Text; namespace Win.Cfg { /// ...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using ...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Login Form Username ...
阅读全文
摘要: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....
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> First Name ...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Loading 其它内容 using System; using System.Collections.Gener...
阅读全文
摘要:如取出TabId和TabName不重复的。 DataTable dt; dt.DefaultView.ToTable(true, new string[] { "TabId", "TabName" });
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// /// Summary description for BaseBLL. /// public class BaseBLL { private string connectionSt...
阅读全文
浙公网安备 33010602011771号