技巧/诀窍:在ASP.NET中重写URL
摘要:http://blog.joycode.com/scottgu/archive/2007/03/01/94004.aspx
阅读全文
posted @
2007-03-15 10:01
mbskys
阅读(81)
推荐(0)
企业库缓存应用程序块和ASP.net的缓存,过期检查功能比较
摘要:首先我们来看ASP.net 中自带的缓存不论你使用的是HttpContext.Cache 还是 HttpRuntime.Cache,他们其实都是System.Web.Caching.Cache 类。在给这个缓存增加缓存项功能时候,你就指定了这个缓存项的过期机制:这个缓存类的增加缓存项函数如下: public Object Add ( string key, Object value, CacheD...
阅读全文
posted @
2007-03-14 13:49
mbskys
阅读(184)
推荐(0)
共享Framework源代码
摘要:俗话说“工欲善其事,必先利其器”,最近在做一个项目,为了省些事,索性把以前的Framework重写了一次,没想到断断续续写了3个月之久。现在拿来出来现现眼,请各位高手指正。 DataAccess是一个抽象基类,是其他数据访问类之母。以下正文。 using System;using System.IO;using System.Data;using System.Diagnostics;namesp...
阅读全文
posted @
2007-03-14 13:00
mbskys
阅读(203)
推荐(0)
c#接收电子邮件类
摘要:using System;using System.Net.Sockets;using System.Net;using System.Security.Cryptography;using System.IO; /**////////////////////////////////////////////// ...
阅读全文
posted @
2007-03-14 12:22
mbskys
阅读(522)
推荐(0)
ASP.NET 2.0,写无限级下拉菜单不再难!!
摘要:ASP.NET 2.0提供了一个Menu 类,可以方便地创建水平或者垂直方向的下拉菜单,下面就是一个例子: 查看例子 下拉菜单的例子 ...
阅读全文
posted @
2007-03-14 11:25
mbskys
阅读(111)
推荐(0)
ASP.NET 2.0 遍历配置文件的数据库连接字符串
摘要:在ASP.NET 2.0中,提供了更方便的配置文件访问的类,具体可以到 System.Configuration 名称空间下进行查看。本文提供一种在开发过程中常用的得到数据库字符串的方法,为方便使用,写成一个方法进行调用: public string GetConnectionString( string _connectionStringsName ){ System.Configurati...
阅读全文
posted @
2007-03-14 11:22
mbskys
阅读(110)
推荐(0)
日期操作常用代码
摘要:using System;namespace My.Utils { /**//// /// 日期操作常用工具 /// public class DateUtils { public DateUtils() { } /**//// /// 比较日期的年份差 /// /// 开始日期 /// 与当前日期的年份差 ...
阅读全文
posted @
2007-03-14 11:19
mbskys
阅读(183)
推荐(0)
c#.NET 中关于日期时间的格式化处理
摘要:1.绑定时格式化日期方法: 2.数据控件如DataGrid/DataList等的件格式化日期方法: e.Item.Cell[0].Text = Convert.ToDateTime(e.Item.Cell[0].Text).ToShortDateString(); 3.用Strin...
阅读全文
posted @
2007-03-14 10:22
mbskys
阅读(174)
推荐(0)
使用C#调用外部Ping命令获取网络连接情况
摘要:http://www.studycs.com/html/31.htmlC#实现WEB服务器http://www.studycs.com/html/34.html用ASP.NET写你自己的代码生成器http://www.studycs.com/html/297.html
阅读全文
posted @
2007-03-13 23:49
mbskys
阅读(87)
推荐(0)
C#程序调用外部程序
摘要:http://www.studycs.com/html/465.htmlhttp://www.studycs.com/html/399.htmlc#编写的PING工具http://www.studycs.com/html/315.htmlASP.NET实现用户在线检测的类源码http://www.studycs.com/html/319.htmlASP.NET结合存储过程写的搜索分页程序
阅读全文
posted @
2007-03-13 23:43
mbskys
阅读(104)
推荐(0)
如何用.NET创建Windows服务
摘要:我们将研究如何创建一个作为Windows服务的应用程序.内容包含什么是Windows服务, 如何创建、安装和调试它们.会用到System.ServiceProcess.ServiceBase命名空间的类. 什么是Windows服务?Windows服务应用程序是一种需要长期运行的应用程序, 它对于服务器环境特别适合.它没有用户界面, 并且也不会产生任何可视输出.任何用户消息都会被写进Windows事...
阅读全文
posted @
2007-03-13 23:38
mbskys
阅读(116)
推荐(0)
Asp.net对文件夹和文件的操作类
摘要:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;//using System.Web.UI.WebControls.WebParts;usin...
阅读全文
posted @
2007-03-13 23:37
mbskys
阅读(129)
推荐(0)
Asp.net对文件夹和文件的操作类
摘要:http://www.studycs.com/html/524.html
阅读全文
posted @
2007-03-13 23:35
mbskys
阅读(79)
推荐(0)
一个自动生成html的类
摘要:http://www.studycs.com/html/265.html
阅读全文
posted @
2007-03-13 23:30
mbskys
阅读(115)
推荐(0)
ASP.NET设计网络硬盘之文件夹实现
摘要:http://www.studycs.com/html/72.html
阅读全文
posted @
2007-03-13 23:28
mbskys
阅读(95)
推荐(0)
获取指定目录里全部内容所占硬盘存储空间的大小
摘要:/**//// /// 返回指定目录的大小 /// /// 指定目录的路径 /// 指定目录的大小 protected long GetDirectorySize(string path) { 实现#region 实现 long dirSize = 0; DirectoryInf...
阅读全文
posted @
2007-03-13 22:40
mbskys
阅读(190)
推荐(0)
实现系统托盘程序控制
摘要:http://www.cnblogs.com/adam/archive/2007/03/06/665540.html
阅读全文
posted @
2007-03-12 02:06
mbskys
阅读(86)
推荐(0)
XML 2 Class [xml 转化为 序列化代码工具]
摘要:http://www.cnblogs.com/adam/archive/2007/03/02/662236.html
阅读全文
posted @
2007-03-12 02:04
mbskys
阅读(82)
推荐(0)
基于.net开发平台项目案例集锦
摘要:http://www.cnblogs.com/AlphaWu/archive/2006/11/29/576590.html
阅读全文
posted @
2007-03-12 01:53
mbskys
阅读(90)
推荐(0)
生成网站缩略图代码(C#)
摘要:http://www.cnblogs.com/AlphaWu/archive/2006/12/25/603489.html
阅读全文
posted @
2007-03-12 01:50
mbskys
阅读(368)
推荐(0)