随笔分类 -  ASP.NET

摘要:下载你需要的redis版本,下载地址:http://download.redis.io/releases/ 打开cmd,redis安装指令:redis-server redis.windows.conf,部署到服务自启动命令:service-install redis.windows.conf 打开 阅读全文
posted @ 2020-12-17 13:11 芈璐 阅读(85) 评论(0) 推荐(0) 编辑
摘要://方法一 下载word Response.ClearContent(); Response.ClearHeaders(); Response.ContentType = "Application/msword"; string s = Server.MapPath(WordPath); Response.WriteFile(WordPath); //Response.Write(s); Res... 阅读全文
posted @ 2017-05-31 10:40 芈璐 阅读(595) 评论(0) 推荐(0) 编辑
摘要:Label1.Text = Play(url, 600, 400); public string Play(string url, int width, int height) { string strTmp = url.ToLower(); if (strTmp.EndsWith(".wmv") || strTmp.EndsWith(".mp4") || strTmp.End... 阅读全文
posted @ 2017-05-31 10:38 芈璐 阅读(340) 评论(0) 推荐(0) 编辑
摘要:通过Request.QueryString["CheckItem"]的方式调用值的时候,数值中的加号“+”会转换为空格“ ” 例如传输“ABC+EFG”,就会取到“ABC EFG” 解决方法: 使用Server.UrlEncode("数据")方法进行编码,之后QueryString方法会自动解码并返 阅读全文
posted @ 2017-05-31 10:34 芈璐 阅读(851) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示