摘要: void Page_Load(object sender, EventArgs e) { // Create a new HttpCookie. HttpCookie myHttpCookie = new HttpCookie("LastVisit", Da... 阅读全文
posted @ 2015-03-06 17:53 萧飒昵称 阅读(243) 评论(0) 推荐(0) 编辑
摘要: public static class UserOnline{ /// /// 获取或设置在线列表 /// public static Hashtable OnlineUserList { get { if (Htt... 阅读全文
posted @ 2015-03-06 17:40 萧飒昵称 阅读(1313) 评论(0) 推荐(1) 编辑
摘要: 首先要引用 NPOI.dll (可在网上下载!)//导入public void OnSubmit() { string path = Server.MapPath("/upload/201410/27/201410271103461051.xls"); FileStream fs = File.Op... 阅读全文
posted @ 2015-03-06 17:28 萧飒昵称 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 当我们的网站需要支持下载大文件时,如果不做控制可能会导致用户在访问下载页面时发生无响应,使得浏览器崩溃。可以参考如下代码来避免这个问题。using System;namespace WebApplication1{ public partial class DownloadFile : S... 阅读全文
posted @ 2015-03-06 17:10 萧飒昵称 阅读(125) 评论(0) 推荐(0) 编辑