04 2010 档案

C#加密解密
摘要:1、方法一 (不可逆加密)public string EncryptPassword(string PasswordString,string PasswordFormat ) { string encryptPassword = null; if (PasswordFormat="SHA1"){ encryptPassword=FormsAuthortication.HashPasswor... 阅读全文

posted @ 2010-04-27 17:33 韩显川 阅读(228) 评论(0) 推荐(0)

SQL2000 修改表所有者的方法
摘要:单个修改所有者sql语句如下:查询分析器输入:EXEC sp_changeobjectowner 'user.table', 'dbo'user.table的意思为:所有者.表名,比如oblog.oblog_user,以前的语句表示将table这张表的所有者由user改成dbo批量修改所有者语句如下:查询分析器输入:exec sp_msforeachtable 'sp_changeobjectow... 阅读全文

posted @ 2010-04-23 15:35 韩显川 阅读(190) 评论(0) 推荐(0)

C#FileStream复制大文件【转自www.bitsCN.com】
摘要:private void CopyFile(string fromFile, string toFile, int lengthEachTime) { FileStream fileToCopy = new FileStream(fromFile, FileMode.Open, FileAccess.Read); FileStream copyToFile = new FileStream(toF... 阅读全文

posted @ 2010-04-21 16:50 韩显川 阅读(144) 评论(0) 推荐(0)

Java调用WebService
摘要:package biz;import java.util.Date;import java.text.DateFormat;import org.apache.axis.client.Call;import org.apache.axis.client.Service;import javax.xml.namespace.QName;import java.lang.Integer;import ... 阅读全文

posted @ 2010-04-08 14:46 韩显川 阅读(292) 评论(1) 推荐(0)

httphandlers 与 httpmodules
摘要:HttpHandlers 和 HttpModules 通过扩展原始的页面框架,提供了用于处理请求和响应的两种途径。HttpHanders的主要目的是处理对某种特定文件或者在URL中对某个文件路径的请求,而HttpModule则主要被用于在最开始的阶段处理一个请求以及在最后阶段处理一个响应。 HttpHandlers是指实现了IHttpHandler接口的类。它们在ProcessRequest()... 阅读全文

posted @ 2010-04-02 09:16 韩显川 阅读(240) 评论(0) 推荐(0)

导航