.Net
jklugv
这个作者很懒,什么都没留下…
展开
-
ASP.NET利用输出流生成下载文件(doc、xml..)
string name = Server.MapPath("文件名").Replace("/", "/").Trim();FileStream fileStream = new FileStream(name, FileMode.Open);long fileSize = fileStream.Length;Context.Response.ContentType = "application转载 2008-05-09 11:26:00 · 1596 阅读 · 1 评论 -
用C#实现的数据加密(二) —— 哈希算法
using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace DataCrypto...{ /**//// /// 哈希加密类 /// public class HashMethod ...{ private HashAlgorithm HashCryptoSer转载 2008-05-09 11:33:00 · 469 阅读 · 0 评论 -
c#实现javascript escape
private string escape(string s) { StringBuilder sb = new StringBuilder(); byte[] ba = System.Text.Encoding.Unicode.GetBytes(s); for (int i = 0; i < ba.Length; i += 2)转载 2008-06-10 10:55:00 · 441 阅读 · 0 评论 -
根椐哈希的键获得对应值
/**//// /// 根椐哈希的键获得对应值 /// /// 哈希 /// 键 /// 值 private string GetHashTableValueByKey(Hashtable ht, string key) ...{ string rv = string.Empty; for转载 2007-06-19 11:04:00 · 735 阅读 · 0 评论 -
LINQ
LINQ LINQ,语言级集成查询(Language INtegrated Query) 经过了最近 20 年,面向对象编程技术( object-oriented (OO) programming technologies )在工业领域的应用已经进入了一个稳定的发展阶段。程序员现在都已经认同像 类(classes)、对象(objects)、方法(methods)这样的语转载 2007-08-03 09:22:00 · 586 阅读 · 1 评论 -
HTTP协议状态码
HTTP协议状态码 "100" : Continue 客户必须继续发出请求 "101" : witching Protocols 客户要求服务器根据请求转换HTTP协议版本 200交易成功 "200" : OK 交易成功 "201" : Created转载 2018-01-29 09:52:18 · 477 阅读 · 0 评论 -
HTTP MIME类型即HttpResponse.ContentType属性值列表
MIME-Typ Dateiendung(en) Bedeutung application/acad *.dwg AutoCAD-Dateien (nach NCSA) application/applefile AppleFile-Dateien application/ast转载 2018-01-29 09:54:24 · 2904 阅读 · 0 评论