asp.net mvc 移动端视图在微信浏览器中未切换问题
在 asp.net mvc 启用 mobile 视图自动切换后,手机浏览器均正常,但是在 android 微信浏览器中不能正确的切换,想象应该是user-agent 未识别,SO .... 加上就好了 Read more
Happy coding everyday~~
在 asp.net mvc 启用 mobile 视图自动切换后,手机浏览器均正常,但是在 android 微信浏览器中不能正确的切换,想象应该是user-agent 未识别,SO .... 加上就好了 Read more
获取 AD 用户信息 public class UserInfo { public string UserId { get; set; } public s Read more
在项目中,使用了System.Web.Optimization 压缩脚本和样式文件,本地测试时,没有开启压缩,页面正常。当发布到服务器时候,自动启用了压缩,然后网页提示脚本问题。检查压缩后内容,和原源文件发现不匹配。 原因是 脚本文件存在同名的min 文件,System.Web.Optimization 开启压缩后,会自动使用了压缩后的文件,由于修改脚本文件后,没有同步生成min 文件,SO 便出现了上述问题。 Read more
automappper 5.0 更换了配置TSource 和TDestination 的方法。 详细查看:https://github.com/AutoMapper/AutoMapper/wiki/Getting-started Read more
好的 .net 系统平台 1,.NET 企业级电子商务平台 (b2b & b2c) .NET Ecommerce Platform for B2B & B2C solutions 网站介绍:http://virtocommerce.com/ demo: http://www.nopcommerce.com/demo.aspx github:https://github.com/VirtoCommerce/vc-community 2,.NET 商城系统 nopcommerce Read more
对于已经发布的网站,新增 app_code 文件夹后,运行提示错误:应用程序已预编译,因此不允许使用目录“/App_Code/”。 只要删除目录下的 PrecompiledApp.config 文件即可。 Read more
VirtualPathUtility 为常见的虚拟路径操作提供实用工具方法。 虚拟路径:指的是 以 ~/ 或者是正斜杠 / 开头的路径,如: string virtualPath1 = "~/abc/"; string virtualPath2 = "/abc"; 绝对路径 absolute ,是正斜杠 / 开头的路径。 想对路径 relative ,是 ~/ 开头的路径。 VirtualPathUtility.IsAbsolute("/abc") // true VirtualPathUtility.IsAppRelative("~/abc") // true Read more
原文地址:https://gist.github.com/IDisposable/77f11c6f7693f9d181bb using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text.RegularExpressions; using System.Web; using System.Web.Http; using System.Web.Http.Routing; using System.Web.Mvc; using System.Web.Routing; Read more
使用休息时间,利用微软壁纸工具的接口,自己写了个 壁纸工具。看图说话:一键安装程序:http://app.wuliping.cn/bingwallpapertools/BingWallPap Read more