安装部署项目
    
            
摘要:补充:详细制作过程如下1 新建安装部署项目打开VS2005,点击新建项目,选择:其他项目类型->安装与部署->安装向导(安装项目也一样),然后点击确定。2 安装向导关闭后打开安装向导,点击下一步,或者直接点击完成。3 开始制作安装向导完成后即可进入项目文件夹:双击"应用程序文件夹"在右边的空白处右击,选择添加->文件,将你的做的应用程序的可执行文件和相应的类库和组件添加进来。然后...
        
阅读全文
 
            
                posted @ 
2010-04-10 17:38 
西湖浪子
        
阅读(161) 
         
        推荐(0)     
             
         
            
            
    文件加密2
    
            
摘要:前些时间看了一下加密的,接着就写了一个文件加密:先定义一个加密异常类///<summary>///加密异常类///</summary>publicclassCryptoFileException:ApplicationException{///<summary>///加密异常构造函数///</summary>///<paramname="msg...
        
阅读全文
 
            
                posted @ 
2010-03-27 13:38 
西湖浪子
        
阅读(217) 
         
        推荐(0)     
             
         
            
            
    测试服务器SMTP是否可用
    
            
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace SeverEmailTest{ public partial c...
        
阅读全文
 
            
                posted @ 
2009-12-17 14:46 
西湖浪子
        
阅读(254) 
         
        推荐(0)     
             
         
            
            
    将ASP.NET Control转换为string
    
            
摘要:下面的类可以实现将ASP.NET的Control(包括aspx页面)转换成String字符串,可以用于: 1.用邮件发送ASP.NET的内容 2.用XSLT转换页面的输出 3.ASPX页面的全局字符串的使用 C#代码using System;using System.IO;using System.Text;using System.Web;using System.Web.UI;public c...
        
阅读全文
 
            
                posted @ 
2009-12-02 17:16 
西湖浪子
        
阅读(228) 
         
        推荐(0)     
             
         
            
            
    经过优化测试的SQL分页存储过程
    
            
摘要:建立一个 Web 应用,分页浏览功能必不可少。这个问题是数据库处理中十分常见的问题。经典的数据分页方法是:ADO 纪录集分页法,也就是利用ADO自带的分页功能(利用游标)来实现分页。但这种分页方法仅适用于较小数据量的情形,因为游标本身有缺点:游标是存放在内存中,很费内存。游标一建立,就将相关的记录锁住,直到取消游标。游标提供了对特定集合中逐行扫描的手段,一般使用游标来逐行遍历数据,根据取出数据条件...
        
阅读全文
 
            
                posted @ 
2009-11-25 13:19 
西湖浪子
        
阅读(176) 
         
        推荐(0)     
             
         
            
            
    StringBuilder Javascript
    
            
摘要:function StringBuilder(value){this.strings = new Array("");this.append(value);}StringBuilder.prototype.append = function (value){if (value)this.strings.push(value);}StringBuilder.prototype.clear = fun...
        
阅读全文
 
            
                posted @ 
2009-11-15 21:47 
西湖浪子
        
阅读(129) 
         
        推荐(0)     
             
         
            
            
    ajax方法
    
            
摘要:var serviceUrl = "/UserAction.aspx"function GetCookie (name){ var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (doc...
        
阅读全文
 
            
                posted @ 
2009-11-15 21:42 
西湖浪子
        
阅读(177) 
         
        推荐(0)     
             
         
            
            
    生成自己想要的sql语句
    
            
摘要:System.Data.SqlClient.SqlConnection con = new System.Data.SqlClient.SqlConnection(); con.ConnectionString="Data Source=1111111;Initial Catalog=1111111;Persist Security Info=True;User ID=sa;Password=sa"; con.Open(); System.Data.SqlClient.SqlDataAdapter adp = new System.Data.SqlClient.SqlDat
        
阅读全文
 
            
                posted @ 
2009-10-19 17:14 
西湖浪子
        
阅读(146) 
         
        推荐(0)     
             
         
            
            
    发送传真的c#方法
    
            
摘要:/**////<summary>///////发送传真的方法,传递三个参数///</summary>///<paramname="faxFile"></param>///<paramname="faxNumber"></param>///<paramname="hostName"></param>pub...
        
阅读全文
 
            
                posted @ 
2009-10-16 14:14 
西湖浪子
        
阅读(221) 
         
        推荐(0)     
             
         
            
            
    使用C#将word文档转换为可供传真的tif文件
    
            
摘要:预备工作:完整安装office 2003,然后添加COM组件引用,Microsoft WORD 11.0 在打印机和传真机选项中将Microsoft Office Document Image Writer设为默认打印机 需添加的命名空间:using Microsoft.Office.Interop.Word;  using System.IO; class PrintDocToTif ...{ ...
        
阅读全文
 
            
                posted @ 
2009-10-16 14:12 
西湖浪子
        
阅读(343) 
         
        推荐(0)     
             
         
            
            
    压缩文件
    
            
摘要:using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Core;public static void CreateZipFileForPath(string filesPath, string zipFilePath) { if (!Directory.Exists(filesPath)) { Console.WriteLi...
        
阅读全文
 
            
                posted @ 
2009-10-14 10:32 
西湖浪子
        
阅读(177) 
         
        推荐(0)     
             
         
            
            
    调试跟踪
    
            
摘要:string path="D:\\log.txt"; if (!File.Exists(path)) { using (System.IO.StreamWriter sw = File.CreateText(path)) { sw.WriteLine(url.ToLower()); } } else { using (System.IO.StreamWriter sw = File.AppendT...
        
阅读全文
 
            
                posted @ 
2009-09-25 16:39 
西湖浪子
        
阅读(120) 
         
        推荐(0)     
             
         
            
            
    asp下载文件代码
    
            
摘要:<%Response.Buffer=true取得要下载的文件,如果不为空。就下载dim url,trueurlurl="下载文件路径和下载文件名" fname=Request("filename") if fname<>"" then trueurlurl=server.MapPath("/") &url end if set objFso=server.CreateOb...
        
阅读全文
 
            
                posted @ 
2009-08-29 10:47 
西湖浪子
        
阅读(648) 
         
        推荐(0)     
             
         
            
            
    .net 学习资源
    
            
摘要:更多...AJAX框架 ·Anthem.NET 08/08/22 ·Ajax.NET Professional 08/08/22 ·MagicAjax.NET 08/08/22更多...文本编辑 ·VietPad 08/08/22 ·NetSpell 08/08/22 ·PPC_edit 08/08/22 ·FCKeditor ...
        
阅读全文
 
            
                posted @ 
2009-07-08 15:10 
西湖浪子
        
阅读(345) 
         
        推荐(0)     
             
         
            
            
    ClickOnce temp file path
    
            
摘要:ClickOnce temp file pathC:\Documents and Settings\jack\Local Settings\Apps\2.0\
        
阅读全文
 
            
                posted @ 
2009-05-15 04:35 
西湖浪子
        
阅读(140) 
         
        推荐(0)     
             
         
            
            
    Dictionary Error
    
            
摘要:在使用Dictionary的Add方法,内部竟然抛出"未将对象引用设置到对象的实例。",这个错误只有在并发的时候出现。 代码如下: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> internal static strin...
        
阅读全文
 
            
                posted @ 
2009-04-29 14:16 
西湖浪子
        
阅读(339) 
         
        推荐(0)     
             
         
            
            
    Asp.NET压缩图片
    
            
摘要:#region 图片压缩(降低质量)Compress private static ImageCodecInfo GetEncoderInfo(String mimeType) { int j; ImageCodecInfo[] encoders; encoders = ImageCodecInfo.G...
        
阅读全文
 
            
                posted @ 
2009-04-17 18:11 
西湖浪子
        
阅读(6726) 
         
        推荐(3)     
             
         
            
            
    c# 一个有用的汉字转拼音类
    
            
摘要:c# 一个有用的汉字转拼音类 来源: 发布时间:星期四, 2008年9月11日 浏览:655次 评论:0C#汉字转换为拼音的类,含大小写转换 因为是静态函数 调用方法很简单 CrazyCoderPinyin.Convert("疯狂代码"); 代码如下: using System; using System.Collections.Generic; using System.Tex...
        
阅读全文
 
            
                posted @ 
2009-03-25 15:28 
西湖浪子
        
阅读(258) 
         
        推荐(0)     
             
         
            
            
    一年中第几周
    
            
摘要:System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US"); System.Globalization.Calendar cal = ci.Calendar; System.Globalization.CalendarWeekRule cwr ...
        
阅读全文
 
            
                posted @ 
2009-02-11 17:39 
西湖浪子
        
阅读(141) 
         
        推荐(0)     
             
         
            
            
    Visual Studio 2005 中的快捷键
    
            
摘要:快捷键 功能 CTRL + SHIFT + B生成解决方案 CTRL + F7 生成编译 CTRL + O 打开文件 CTRL + SHIFT + O打开项目 CTRL + SHIFT + C显示类视图窗口 F4 显示属性窗口 SHIFT + F4显示项目属性窗口 CTRL + SHIFT + E显示资源视图 F12 转到定义 CTRL +...
        
阅读全文
 
            
                posted @ 
2009-02-01 17:39 
西湖浪子
        
阅读(154) 
         
        推荐(0)