上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页
摘要: DATEPART 返回代表指定日期的指定日期部分的整数。 DATEPART ( datepart ,date ) datepart 是指定应返回的日期部分的参数。下表列出了 Microsoft® SQL Server™ 识别的日期部分和缩写。 日期部分缩写 year yy, yyyy quarter 阅读全文
posted @ 2016-05-31 09:09 shiningrise 阅读(1136) 评论(0) 推荐(0)
摘要: 如果url是 /home/index?id=3 直接Request就ok。 但是如果路由设定为:{controller}/{action}/{id} url是 /home/index/3 这时想在页面View中获取参数id的值,该怎么获取? 查了下资料好多人都利用Action获取到参数值后,用Vie 阅读全文
posted @ 2016-05-31 07:50 shiningrise 阅读(468) 评论(0) 推荐(0)
摘要: [备忘]ASP.NET MVC中RouteData.GetRequiredString("key")方法和RouteData.DataTokens["key"]方法使用上的区别 DataTokens中的Key是从Routing中获取的,可以是映射关系(可以不是字符串),这个key可以存在也可以不存在 阅读全文
posted @ 2016-05-31 06:24 shiningrise 阅读(417) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/apsnet/archive/2012/04/28/2474730.html 1. Elmah使用后,在发布时,要区分IIS6和IIS7 ,IIS6下 HttpModules必须在web.config或App.config 配置文件中使用 system. 阅读全文
posted @ 2016-05-29 14:35 shiningrise 阅读(316) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/jys509/p/4571298.html 简介 ELMAH(Error Logging Modules and Handlers)错误日志记录模块和处理程序,是一种应用广泛的错误日志工具是完全可插拔。它可以动态添加到一个正在运行的ASP.NET Web 阅读全文
posted @ 2016-05-29 14:13 shiningrise 阅读(258) 评论(0) 推荐(0)
摘要: redis.windows-service.conf中加 requirepass 你的密码 <!-- Cache.Redis连接配置 --> <add key="Cache_Redis_Configuration" value="localhost,password=你的密码"/> 阅读全文
posted @ 2016-05-29 11:07 shiningrise 阅读(560) 评论(0) 推荐(0)
摘要: PetaPoco初体验(转) PetaPoco初体验(转) 大部分转自: http://landyer.com/archives/138 PetaPoco C#微型ORM框架,基本无需配置,仅由单个cs文件构成,支持.net3.5 .net4.0。 截稿时PetaPoco的官方最新版本为5.0.1。 阅读全文
posted @ 2016-05-28 11:54 shiningrise 阅读(425) 评论(0) 推荐(0)
摘要: $('.feedback').removeClass('hidden').delay(1000).queue(function () { $('.feedback').addClass('hidden') }); 阅读全文
posted @ 2016-05-28 11:37 shiningrise 阅读(176) 评论(0) 推荐(0)
摘要: http://fluentdata.codeplex.com/documentation#Query 阅读全文
posted @ 2016-05-28 11:25 shiningrise 阅读(200) 评论(0) 推荐(0)
摘要: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "ad", ... 阅读全文
posted @ 2016-05-26 11:04 shiningrise 阅读(188) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/xinhaijulan/archive/2010/08/21/1805116.html Session共享的解决方案 1、客户端SessionID值唯一; 对于不同的域名:主域名、子域名、跨站点域名或跨服务器域名,用户在打开页面时会产生不同的Sessio 阅读全文
posted @ 2016-05-25 01:19 shiningrise 阅读(1837) 评论(0) 推荐(0)
摘要: https://natapp.cn/ http://blog.csdn.net/g2321514568/article/details/12406755 目标服务器:targetServer 配置反向代理的服务器:reveseProxServer 1、确定最终访问的网址:比如www.baidu.co 阅读全文
posted @ 2016-05-23 16:41 shiningrise 阅读(742) 评论(0) 推荐(0)
摘要: 在 Web.config 文件的<configuration>标记的子标记<authorization>和</authorization>之间用于设置应用程序的授权策略,容许或拒绝不同的用户或角色访问,该配置可以在计算机、站点、应用程序、子目录或页等级别上声明,必须与<authentication> 阅读全文
posted @ 2016-05-23 15:29 shiningrise 阅读(896) 评论(0) 推荐(0)
摘要: https方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受https带来的极速 设置记住密码(默认15分钟): git config --global credential.helper cache git config --global credential.hel 阅读全文
posted @ 2016-05-18 09:02 shiningrise 阅读(1054) 评论(0) 推荐(0)
摘要: http://www.360doc.com/content/14/1118/21/15077656_426245574.shtml 阅读全文
posted @ 2016-05-17 23:43 shiningrise 阅读(1691) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_58c506600101tycn.html 最近,因为国内访问Visual Studio Online(微软的免费代码托管服务,以前叫Team Foundation Service)越来越慢——原因你懂的——甚至有些时候连登录页面都刷不出 阅读全文
posted @ 2016-05-14 08:59 shiningrise 阅读(13026) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/JKqingxinfeng/archive/2012/10/29/2744663.htmlHTTP错误404.13 - Not Found 请求筛选模块被配置为拒绝超过请求内容长度的请求,原因是Web服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过... 阅读全文
posted @ 2016-01-22 14:10 shiningrise 阅读(317) 评论(0) 推荐(0)
摘要: 现今大多数的网站尤其是购物网站都要求你登录后才能继续操作,当你匿名的将商品放入购物车后,不可能匿名购买这时可以转到登录界面让用户进行登录验证。适用系统自带的过滤器MVC5只要将属性[Authorize]置于相关的action之前就行,那么在调用Buy action之前,就会运用Authorize过滤... 阅读全文
posted @ 2015-12-11 15:02 shiningrise 阅读(2519) 评论(0) 推荐(1)
摘要: 画面上有个多个按钮时,如何绑定到各自的Action上?1.追加如下MultipleButtonAttribute类 1 using System; 2 using System.Reflection; 3 using System.Web.Mvc; 4 5 namespace DailyRepor... 阅读全文
posted @ 2015-12-11 14:54 shiningrise 阅读(424) 评论(0) 推荐(0)
摘要: PetaPoco最初的灵感来自Massive-通过dynamic Expando objects返回一切。对于大多数情况我觉得这比较麻烦,更喜欢强类型的类。但是有些时候支持dynamic也是有用的-特别是用于Join、Group By和其他计算查询时。构造一个dynamic查询只需使用现有的查询方法... 阅读全文
posted @ 2015-11-29 16:27 shiningrise 阅读(543) 评论(1) 推荐(1)
摘要: 1、降低IE安全级别 Win 2008默认IE的安全级别为“高”,并且不能随意调整,在浏览网页的时候有些会有一些限制,可以打开注册表编辑器进行设置,定位到 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet... 阅读全文
posted @ 2015-11-27 14:17 shiningrise 阅读(982) 评论(0) 推荐(0)
摘要: using (MemoryStream ms = new MemoryStream()) { using (ZipArchive archive = new ZipArchive(ms, ZipArchiveMode.Upd... 阅读全文
posted @ 2015-11-22 21:01 shiningrise 阅读(686) 评论(0) 推荐(0)
摘要: Thanks tohttp://stackoverflow.com/a/12350106/222748I got:using (var memoryStream = new MemoryStream()){ using (var archive = new ZipArchive(memorySt... 阅读全文
posted @ 2015-11-21 22:26 shiningrise 阅读(318) 评论(0) 推荐(0)
摘要: private void AutofacIoCRegister() { HttpConfiguration config = GlobalConfiguration.Configuration; if (_containerPr... 阅读全文
posted @ 2015-11-19 06:04 shiningrise 阅读(2356) 评论(0) 推荐(0)
摘要: 我们在建站的时候,通常有些目录必须给写入权限,这个时候这些目录就很可能被人写入脚本文件,为了将安全性维护得更好,我们可以关闭这些有写入权限的目录的脚本执行权限。IIS6的时候,我们很容易找到关闭的地方,而IIS7时代,由于架构的变化,很多人找不到,这里我就给大家稍微说明一下怎么关闭特定网站目录的脚本... 阅读全文
posted @ 2015-10-21 21:14 shiningrise 阅读(558) 评论(0) 推荐(0)
摘要: var ids = (from id in ed_ProjectClass.Values select Guid.Parse(id)).ToArray(); Entity.ProjectClassCollection.Where(p =>... 阅读全文
posted @ 2015-10-14 19:32 shiningrise 阅读(171) 评论(0) 推荐(0)
摘要: http://www.npoi.info/ 阅读全文
posted @ 2015-10-11 20:27 shiningrise 阅读(238) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/wfyfngu/p/4866434.html 在传统桌面项目中,进度条随处可见,但作为一个很好的用户体验,却没有在如今主流的B/S程序中得到传承,不能不说是个遗憾。这个遗憾并非WEB程序不支持进度条,很大的原因应该是我们由于种种麻烦懒的去实现。前段时间... 阅读全文
posted @ 2015-10-10 14:06 shiningrise 阅读(370) 评论(0) 推荐(0)
摘要: http://www.butlife.com/method-based-query-syntax/ 阅读全文
posted @ 2015-10-09 23:11 shiningrise 阅读(261) 评论(0) 推荐(0)
摘要: http://www.jb51.net/article/55941.htmC#实现:复制代码 代码如下: #region 计算字符串相似度 /// /// 计算字符串相似度 /// /// 字符串1 /// 字符串2 /// 相似度 public static float Leven... 阅读全文
posted @ 2015-10-07 17:35 shiningrise 阅读(619) 评论(0) 推荐(0)
摘要: private int CountWords(string text) { var count = Regex.Matches(text, @"[\u4e00-\u9fa5]|[a-zA-X]+").Count; return 30 + count; } 阅读全文
posted @ 2015-10-07 16:53 shiningrise 阅读(277) 评论(0) 推荐(0)
摘要: asp.net(C#)页面事件顺序http://www.cnblogs.com/henw/archive/2012/02/09/2343994.html 1 using System.Data; 2 using System.Configuration; 3 using System.Web;... 阅读全文
posted @ 2015-10-07 16:31 shiningrise 阅读(837) 评论(0) 推荐(0)
摘要: http://www.ipmsg.org.cn/ 阅读全文
posted @ 2015-10-06 19:27 shiningrise 阅读(218) 评论(0) 推荐(0)
摘要: Windows8 的开发已经如火如荼开始了,在 Windows8 中提供的 .NET Framework 已经更新到了 4.5 版,其中又增加了一些新的特性,对压缩文件的支持就是其中之一。在 4.5 之前,处理压缩文件,我们经常需要使用第三方的类库 SharpZipLib, 现在可以直接实现了。1.... 阅读全文
posted @ 2015-10-06 14:39 shiningrise 阅读(185) 评论(0) 推荐(0)
摘要: _UserService = ((IContainerProviderAccessor)HttpContext.Current.ApplicationInstance).ContainerProvider.ApplicationContainer.Resolve(); 阅读全文
posted @ 2015-10-05 21:46 shiningrise 阅读(1278) 评论(0) 推荐(0)
摘要: http://www.ipmsg.org.cn/ 阅读全文
posted @ 2015-10-05 07:56 shiningrise 阅读(219) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/stoneniqiu/p/3806558.htmlhttp://www.cnblogs.com/KnightsWarrior/archive/2010/10/20/1856255.htmlhttp://autoupdater.codeplex.com/ 阅读全文
posted @ 2015-10-04 14:04 shiningrise 阅读(262) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/kingboy2008/p/3770321.html 阅读全文
posted @ 2015-09-28 10:54 shiningrise 阅读(180) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/daxnet/archive/2013/05/07/3064577.html 阅读全文
posted @ 2015-09-27 16:17 shiningrise 阅读(218) 评论(0) 推荐(0)
摘要: 数据架构与INSERT脚本生成https://dbschemareader.codeplex.com/wikipage?title=Writing%20Data&referringTitle=Documentationhttps://github.com/martinjw/dbschemareade... 阅读全文
posted @ 2015-09-27 15:21 shiningrise 阅读(455) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 29 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css