c#
实打实的洒水
这个作者很懒,什么都没留下…
展开
-
控件被封装,强行调用WebbUpload_BeginRequest方法
最近做一个上传视频的功能,结果上传控件FileUpload被之前维护的人强行封装了_BeginRequest事件,不想用之前的方法,很苦逼,终于在网上找到了一个方法可以跳过…原创 2017-06-29 09:33:43 · 254 阅读 · 0 评论 -
c# 用application获取访问量
在网站根目录下 Global.asax protected void Application_Start(Object sender, EventArgs e) { // 在应用程序启动时运行的代码 //总访问量 Application["CurrentUserCount"] = 0; //原创 2017-06-22 09:34:06 · 1005 阅读 · 0 评论 -
c# 连接访问数据库
先构建实体类public class UserInfo { public int username { get; set; } public string password { get; set; } }拼接sql语句protected UserInfo user = new UserInfo(); public obl原创 2017-06-22 13:09:39 · 195 阅读 · 0 评论 -
C#去除HTML标签
public static string ReplaceHtmlTag(string html, int length = 0){ string strText = System.Text.RegularExpressions.Regex.Replace(html, "]+>", ""); strText = System.Text.RegularExpressions.Rege转载 2017-07-17 09:30:01 · 276 阅读 · 0 评论 -
上传视频并截取缩略图
最近做一个上传视频并且截取缩略图的功能,百度了一下好像都是上传视频之后使用ffmpeg进行截图,自己尝试了一下,很方便 原帖:http://blog.csdn.net/mqplw/article/details/43675093 ffmpeg官方下载地址:http://ffmpeg.zeranoe.com/builds/转载 2017-06-27 11:43:40 · 1703 阅读 · 0 评论