2009年9月12日

ASP.NET中实现多文件上传(普通)

摘要: private Boolean SaveFiles() { //得到File表单元素 HttpFileCollection files = HttpContext.Current.Request.Files; try { for(int intCount= 0; intCount< f... 阅读全文

posted @ 2009-09-12 23:12 画一个圆圈 阅读(98) 评论(0) 推荐(0) 编辑

获取请求的Headers部分

摘要: System.Collections.Specialized.NameValueCollection namevalue=Request.Headers; if (namevalue != null) { //for (int i = 0; i "); //} foreach (stri... 阅读全文

posted @ 2009-09-12 22:04 画一个圆圈 阅读(128) 评论(0) 推荐(0) 编辑

asp.net实现数据流文件下载

摘要: using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using... 阅读全文

posted @ 2009-09-12 22:02 画一个圆圈 阅读(167) 评论(0) 推荐(0) 编辑

在ASP.NET程序中集成更好的下载体验

摘要: http://www.cnblogs.com/evanescenceX/archive/2008/06/16/1222883.html 阅读全文

posted @ 2009-09-12 20:36 画一个圆圈 阅读(75) 评论(0) 推荐(0) 编辑

对接口IHttpModule的继承

摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syst... 阅读全文

posted @ 2009-09-12 20:09 画一个圆圈 阅读(171) 评论(0) 推荐(0) 编辑

读取XML文件中的某个节点的某个属性

摘要: XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath,"web.config")); XmlNod... 阅读全文

posted @ 2009-09-12 18:17 画一个圆圈 阅读(202) 评论(0) 推荐(0) 编辑

request.ContentType的可取值

摘要: 服务器送给客户端的数据包类型可以是text/html文本,也可以是gif/jpeg图形文件,所以每次传输前,我们都必须告知客户端将要传输的文件类型,一般默认情况下为“Text/Html”类型。ContentType类型 “.*“=“application/octet-stream““.001“=“... 阅读全文

posted @ 2009-09-12 17:55 画一个圆圈 阅读(245) 评论(0) 推荐(0) 编辑

multipart form-data boundary 说明

摘要: 含义 ENCTYPE="multipart/form-data" 说明: 通过 http 协议上传文件 rfc1867协议概述,jsp 应用举例,客户端发送内容构造1、概述在最初的 http 协议中,没有上传文件方面的功能。 rfc1867 (http://www.ietf.org/rfc/rfc... 阅读全文

posted @ 2009-09-12 17:53 画一个圆圈 阅读(490) 评论(0) 推荐(0) 编辑

asp.net中ENUM的用法

摘要: 一、Enum的定义 public enum UserRolesType { UnKnown=0, BaseSimple=70, BaseBasic=71, BaseExtend=72, BaseBasic2=88, BaseSimple2=89, BaseExtend2... 阅读全文

posted @ 2009-09-12 12:01 画一个圆圈 阅读(293) 评论(0) 推荐(0) 编辑

2009年9月11日

跟随鼠标跑

摘要: 字符跟随鼠标 阅读全文

posted @ 2009-09-11 22:19 画一个圆圈 阅读(120) 评论(0) 推荐(0) 编辑

导航