2010年9月13日

代码生成器的DiaLog

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Collections;using Microsoft.W... 阅读全文

posted @ 2010-09-13 18:21 xrt2004 阅读(373) 评论(0) 推荐(0) 编辑

代码生成器,写好了一个Ibatis.Net的模板

摘要: <%#NAMESPACE System.IO, System.Text, System.Text.RegularExpressions, System.Globalization %><%// $Id: CSharp_IBatis_BusinessObject.csgen,v 1.3 2005/12/15 23:57:34 morciuch Exp $public class G... 阅读全文

posted @ 2010-09-13 18:19 xrt2004 阅读(1111) 评论(0) 推荐(0) 编辑

2010年7月6日

Gridview 全选 删除

摘要: <asp:TemplateField HeaderText="全选"> <HeaderTemplate> <asp:CheckBox ID="CheckBoxAll" runat="server" Text="全选1" onclick="chkAll('gv', this.id)" /> <input type="checkbox" id="Checkbo... 阅读全文

posted @ 2010-07-06 10:29 xrt2004 阅读(255) 评论(1) 推荐(0) 编辑

2010年6月24日

将Enum绑定到DropDownList

摘要: public enum Color{ RED, GREEN, BLUE} protected System.Web.UI.WebControls.DropDownList ddColor; private void Page_Load(object sender, System.EventArgs e){ if(!IsPostBack) { ddColor.DataSource = Enum.Ge... 阅读全文

posted @ 2010-06-24 18:30 xrt2004 阅读(223) 评论(0) 推荐(0) 编辑

Fckeditor 2.6 配置(ASP.NET)经本人测试过的

摘要: Fckeditor 2.6 配置(ASP.NET)原文:http://www.cnblogs.com/qinying/archive/2008/09/28/1301254.html 从官方网站http://www.fckeditor.net/download下载最新版的Fckeditor。 需要下载Fckeditor 2.X.X,当前的最新版本是2.6.3 还需要下载Fckeditor.... 阅读全文

posted @ 2010-06-24 14:46 xrt2004 阅读(153) 评论(0) 推荐(0) 编辑

2010年6月23日

C# .Net使用正则表达式去除HTML标记和空格

摘要: 1.styleReg:清除样式.如<style>.class{}</style>.全部替换为空.2.scriptReg和styleReg同样的道理.3.htmlReg :清除html标签的.输入为<div>aaa</div>,结果为:aaa4.htmlSpaceReg :html空格&nbsp;替换为空格5.spaceReg :把一个以上的空... 阅读全文

posted @ 2010-06-23 11:08 xrt2004 阅读(1313) 评论(0) 推荐(0) 编辑

2010年6月18日

14位时间的转化

摘要: using System;using System.Collections.Generic;public class MyClass{public static void RunSnippet(){ string a=DateTime.Now.ToString("yyyyMMddhhmmss");DateTime dt = DateTime.Parse(string.Format( new MyD... 阅读全文

posted @ 2010-06-18 16:53 xrt2004 阅读(374) 评论(0) 推荐(0) 编辑

文件生成唯一的Hash码

摘要: using System;using System.Collections.Generic;using System.IO;using System.Security.Cryptography;public class MyClass{public static void RunSnippet(){string path="E://EPMS0330//delete.log";string code... 阅读全文

posted @ 2010-06-18 16:51 xrt2004 阅读(1507) 评论(0) 推荐(0) 编辑

IDictionary单例的写法 ,放入缓存中,vs2008,Linq应用

摘要: using System.Collections.Generic;using System.Linq;using EPMS.Domain;using EPMS.IDao;using EPMS.ISrv;namespace EPMS.Srv{public class ProjectRepo : IProjectRepo{protected IList<ProjectV2> _list; ... 阅读全文

posted @ 2010-06-18 10:00 xrt2004 阅读(313) 评论(0) 推荐(1) 编辑

2010年6月17日

改变TextBox的可读性

摘要: <script language="javascript"> function ChangeTimeEnable(ddl) { if ("是" == ddl.value) { document.getElementById('<%=txtRequireTime.ClientID %>').disabled = false; document.getElementById(... 阅读全文

posted @ 2010-06-17 10:55 xrt2004 阅读(145) 评论(0) 推荐(0) 编辑

导航