随笔分类 -  Asp.Net

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespaceCommon { public static class EmojiFilter { /** * 检测是否有emoji字符 * @pa... 阅读全文
posted @ 2016-10-10 11:23 web王 阅读(1624) 评论(0) 推荐(0)
摘要:获取本机外网ip 获取本机内网ip 阅读全文
posted @ 2016-06-28 18:42 web王 阅读(3285) 评论(0) 推荐(0)
摘要:1 问题:IIS上部署MVC网站,打开后500错误:处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipelineHandler” 解决方案: 以管理员运行下面的命令注册: 32位机器:C:\Windows\Mic 阅读全文
posted @ 2016-03-08 16:35 web王 阅读(325) 评论(0) 推荐(0)
摘要:代码写N久了,总想写得别的。这不,上头说在整合两个项目,做成单一登录(Single Sign On),也有人称之为“单点登录”。查阅相关文档后,终于实现了,现在把它拿出来与大家一起分享。或许大家会问:“这与标题不符呀?”别急,在下笔之前,我脑子里想到了我刚使用Form认证时遇到的一些问题,以及使用过... 阅读全文
posted @ 2015-03-11 11:29 web王 阅读(321) 评论(0) 推荐(0)
摘要:下载地址在这里: http://www.microsoft.com/zh-cn/download/details.aspx?id=44533&WT.mc_id=rss_alldownloads_all 阅读全文
posted @ 2015-02-03 11:39 web王 阅读(1837) 评论(0) 推荐(0)
摘要:提取编辑器中的首张图片public static string GetFirstImages(string htmlText){const string pattern = "";const string pattern1 = "src\\s*=\\s*((\"|\')?)(?\\S+)(\"|\')?[^>]*";string s = null;Match match = Regex.Match(htmlText, pattern, RegexOptions.IgnoreCase); //找到img标记if ( 阅读全文
posted @ 2013-11-01 18:51 web王 阅读(343) 评论(0) 推荐(0)