会员登录界面增加模块 大家好,我正在做一个会员登录界面,就是要求会员在登录成功后,进入会员界面能够看到两个模块,现在登陆界面已经做好,主要是登陆后的那个两个模块:下载中心、视频点播,有谁有类似的代码可以发给我看一下吗/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下载中asp.net中文件下载downlod.aspx视频播放使用media或 flv播放视频string fileName = "";//客户端保存的文件名 string filePath = Server.MapPath("");//路径 FileInfo fileInfo = new FileInfo(filePath); Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName); Response.AddHeader("Content-Length", fileInfo.Length.ToString()); Response.AddHeader("Content-Transfer-Encoding", "binary"); Response.ContentType = "application/octet-stream"; Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); Response.WriteFile(fileInfo.FullName); Response.Flush(); Response.End(); 求助:裝了IIS,能打开html,无法打开aspx 高分求:asp.net 中如何在一个页面中得到另一个页面的输出内容 生成自定义类时出现的问题,请大家帮帮忙。 新装的2003 也安装的IIS 和asp.net.但运行aspx出错 急:请教这位高手,有没有asp.net论坛的原代码。 多个国际域名共享用户cookie怎么解决? 简单问题 马上加分 请问下在什么情况应该使用delegate?? asp.net后台如何获取GridView中的文本框中的值并相加 怎样得到来访者是从哪个页面过来的? 文章关键字替换 文章评分功能怎么设计?
视频播放使用media或 flv播放视频
string fileName = "";//客户端保存的文件名
string filePath = Server.MapPath("");//路径 FileInfo fileInfo = new FileInfo(filePath);
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
Response.AddHeader("Content-Length", fileInfo.Length.ToString());
Response.AddHeader("Content-Transfer-Encoding", "binary");
Response.ContentType = "application/octet-stream";
Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
Response.WriteFile(fileInfo.FullName);
Response.Flush();
Response.End();