welcome to .net developement bar

06 2007 档案

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--TheEdge推荐[2007-6-4]出处:中国IT实验室作者:keda说到数据库,我认为不能不先谈数据结构。1996年,在我初入大学学习计算机编程时,当时的老师就告诉我们说:计算机程序=数据结构+算法。... 阅读全文
posted @ 2007-06-10 09:24 endif 阅读(199) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--如果你读过很多行业杂志和ASP.NET示例,你会发现,大多数人使用Response.Redirect将用户引导到另一个页面,而另一些人好像偏爱于神秘的Server.Transfer,那么,这二者有什么区别... 阅读全文
posted @ 2007-06-09 15:54 endif 阅读(438) 评论(1) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[1345... 阅读全文
posted @ 2007-06-09 15:54 endif 阅读(314) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Runtime.InteropServices;usingSystem.Management;namespaceHardware{///<summar... 阅读全文
posted @ 2007-06-09 15:53 endif 阅读(808) 评论(3) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--作者:Webmaster来源:Linuxdby.com点击:1日期:2007-06-04[收藏][投稿]IE是否经常中毒?推荐您下载带有Google工具栏的Firefox,上网冲浪更惬意晚辈最近用C#写了... 阅读全文
posted @ 2007-06-06 19:19 endif 阅读(570) 评论(0) 推荐(0)
摘要: 使用C#在进度条中显示复制文件的进度 阅读全文
posted @ 2007-06-06 19:17 endif 阅读(1602) 评论(0) 推荐(0)
摘要:Windows XP SP2多线程访问提速秘技 日期:2006-5-28 14:36:57 人气: 512 [大 中 小] 众所周知,为了防范蠕虫病毒的传播和攻击,Windows XP SP2将并发线程最多限制为10个。SP2利用Messages动态链接库,来实时监控每个进程的并发线程数目,一旦它发现某进程的线程数超过10个,就 会屏蔽掉部分线程。SP2这样做,虽然可以防范震荡波类型的蠕虫病毒,加... 阅读全文
posted @ 2007-06-06 15:51 endif 阅读(412) 评论(0) 推荐(0)
摘要:在MSDN中,.net的数据库连接字符串都有详细的说明,我这里以代码范例的方式罗列一些,具体的每一项代表的意义可以参看MSDN. ADO.net 中数据库连接方式(微软提供) 微软提供了以下四种数据库连接方式: System.Data.OleDb.OleDbConnection System.Data.SqlClient.SqlConnection System.Data.Odbc.OdbcConnection System.Data.OracleClient.OracleConnection 下面我们以范例的方式,来依次说明: System.Data.SqlClient.SqlConnection 常用的一些连接字符串(C#代码): SqlConnection conn = new SqlConnection( "Server=(local);Integrated Security=SSPI;database=Pubs"); SqlConn 阅读全文
posted @ 2007-06-06 15:50 endif 阅读(1023) 评论(0) 推荐(0)
摘要:Asp.Net Forums研究文章集合 Asp.Net Forums是如何实现代码分离和换皮肤的 http://www.cnblogs.com/dotey/archive/2004/05/28/11982.html模拟Asp.Net Forums实现可以换皮肤的控件 http://webuc.net/dotey/archive/2004/05/28/835.aspxAspNetForum... 阅读全文
posted @ 2007-06-02 13:02 endif 阅读(197) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Posted on 2005-09-17 10:55 银河 阅读(2478) 评论(7) 编辑 收藏 引用 网摘 所属分类: .NET Framework在FCL2.0中增加了System.IO.Com... 阅读全文
posted @ 2007-06-02 12:54 endif 阅读(337) 评论(0) 推荐(0)
摘要:ASP.NET实现文件的在线压缩和解压缩 我们经常会遇到批量上传的问题,也会遇到将某个目录下所有文件都上传到服务器上的问题。 那么,如何解决此类问题呢?以前的技术一般采用ActiveX等方式,这里笔者采用SharpZlib来实现,听说VS2005已有压缩和解压缩的解决方案,笔者还没有时间用VS2005,所以就只好使用VS2003 + SharpZlib来解决问题了。   1、首先从这里下载0.84版本的SharpZlib源码及示例码。   2、下载下来之后你发现它没有VS2003的解决方案文件,没有关系。你可以自己建立,首先新建一个ZipUnzip的解决方案,然后,将上面经过解压缩之后的所有文件及目录COPY到你的解决方案所在的目录下。   3、在VS2003解决方案资源管理器(一般是在右上方中部点的位置)中点击显示所有文件按钮,然后可以见到很多“虚”的图标、文件及文件夹等,可以一次选择它们,然后包含进项目中。 阅读全文
posted @ 2007-06-02 12:53 endif 阅读(309) 评论(0) 推荐(0)
摘要:System.IO.Compression 命名空间   注意:此命名空间在 .NET Framework 2.0 版中是新增的。   System.IO.Compression 命名空间包含提供基本的流压缩和解压缩服务的类。 压缩字符串 public static string ZipString(string unCompressedString) { byte[] bytData = System.Text.Encoding.UTF8.GetBytes(unCompressedString); MemoryStream ms = new MemoryStream(); Stream s = new GZipStream(ms, CompressionMode.Compress); s.Write(bytData, 0, bytData.Length); s.Close(); byte[] compressedData = (byte[])ms.ToArr 阅读全文
posted @ 2007-06-02 12:51 endif 阅读(283) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ③ 直接反注册、卸载这些危险组件的方法:(实用于不想用①及②类此类烦琐的方法)卸载wscript.shell对象,在cmd下或直接运行:regsvr32 /u %windir%\system32\WSH... 阅读全文
posted @ 2007-06-02 12:38 endif 阅读(791) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Asp.NET压缩图片 #region 图片压缩(降低质量)Compress private static ImageCodecInfo GetEncoderInfo(String mime... 阅读全文
posted @ 2007-06-02 12:37 endif 阅读(2246) 评论(0) 推荐(1)
摘要: 1、建立Conn.cs类文件 using System; using System.Text; using System.Web; using System.IO; namespace myservers { /// /// Conn 的摘要说明。 /// public class Conn { public Conn() { // // TODO: 在此处添加构造函数逻辑 // } public string WriteFile(string strText,string strContent,string strAuthor) { s 阅读全文
posted @ 2007-06-02 12:35 endif 阅读(266) 评论(0) 推荐(0)