上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 41 下一页

FormsAuthentication.Signout不能清楚服务器端cookie

摘要: 具体信息可以参考文章 https://support.microsoft.com/en-us/help/900111/the-formsauthentication.signout-method-does-not-prevent-cookie-reply-attacks-in-asp.net-app 阅读全文
posted @ 2017-03-24 08:34 新西兰程序员 阅读(234) 评论(0) 推荐(0)

Umbraco back office 登录不了,如何解决

摘要: 通过设置User的默认密码为"default", 它的Hash值为 bnWxWyFdCueCcKrqniYK9iAS+7E= 所以在SQL Server中执行以下脚本 UPDATE umbracoUser set userNoConsole=0, userdisabled=0, userLogin= 阅读全文
posted @ 2017-03-23 09:37 新西兰程序员 阅读(295) 评论(0) 推荐(0)

CSP 的有用资料

摘要: 具体请参考: http://software-security.sans.org/downloads/appsec-2014-files/building-a-content-security-policy-csp-eric-johnson.pdf 阅读全文
posted @ 2017-03-14 07:19 新西兰程序员 阅读(255) 评论(0) 推荐(0)

Hash和Salt Umbraco 默认的password存储方式

摘要: 本文章转载自 http://blog.reneorban.com/2014/10/hash-and-salt-umbraco-passwords.html Hash and Salt Umbraco passwords By default right now (I'm testing on ver 阅读全文
posted @ 2017-03-09 10:44 新西兰程序员 阅读(308) 评论(0) 推荐(0)

Google Analytics添加到网站

摘要: 把Google Analytics添加到网站的具体方式 https://developers.google.com/analytics/devguides/collection/analyticsjs/?hl=zh-cn 阅读全文
posted @ 2017-02-16 10:02 新西兰程序员 阅读(189) 评论(0) 推荐(0)

Javascript实现页面左边的菜单选中项高亮显示

摘要: 在项目开发过程中,遇到一个问题 在一个模板页面中,Layout.cshtml,页面左边放了一个菜单项menu,每一项都是一个链接到一个新的页面。但所有页面都是用这个模板Layout.cshtml。需要当你点击到menu上某一项时,该项应用css class "selected"高亮显示。 Layou 阅读全文
posted @ 2017-02-10 14:30 新西兰程序员 阅读(424) 评论(0) 推荐(0)

软件开发--依赖注入

摘要: 控制反转(Inversion of Control,缩写为IoC),是面向对象编程的一种设计原则,可以用来减低计算机代码之间的耦合度。其中最常见的方式叫做 依赖注入(Dependency Injection,简称DI). 还有一种方式叫做 "依赖查找" (Dependency Lookup). 通过 阅读全文
posted @ 2017-01-20 11:41 新西兰程序员 阅读(191) 评论(0) 推荐(0)

最常用的正则表达式大全

摘要: 本文转载自 http://www.cnblogs.com/zxin/archive/2013/01/26/2877765.html 在正则表达式中,一些符号说明如下 星号"*":表示和其他表达式一起,表示容易组合;方括号"[ ]":用与定义可接受的字符。[abc123] 表示控件只能接受 a,b,c 阅读全文
posted @ 2017-01-19 06:54 新西兰程序员 阅读(256) 评论(0) 推荐(0)

Unobtrusive Javascript有三层含义

摘要: 一是在HTML代码中不会随意的插入Javsscript代码,只在标签中加一些额外的属性值,然后被引用的脚本文件识别和处理; 二是通过脚本文件所增加的功能是一种渐进式的增强,当客户端不支持或禁用了Javsscript时网页所提供的功能仍然能够实现,只是用户体验会降低; 三是能够兼容不同的浏览器。 阅读全文
posted @ 2017-01-19 06:01 新西兰程序员 阅读(120) 评论(0) 推荐(0)

VS2015中使用Git遇到问题 Cannot do push / pull in git - working with visual studio

摘要: I have made a lot of changes, when I am trying to push them - I am getting the next error: You cannot push branch master to remote origin because ther 阅读全文
posted @ 2017-01-17 09:10 新西兰程序员 阅读(668) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 41 下一页