随笔分类 -  Asp.net

摘要:Response.Write("客户端计算机名:" + Request.UserHostName + ""); Response.Write("客户端IP:" + Request.UserHostAddress + ""); Response.Write("浏览器:" + Request.Bro... 阅读全文
posted @ 2014-08-12 17:34 shuaixf 阅读(687) 评论(0) 推荐(0)
摘要:一、系统过滤器使用说明 1、OutputCache过滤器OutputCache过滤器用于缓存你查询结果,这样可以提高用户体验,也可以减少查询次数。它有以下属性: Duration:缓存的时间,以秒为单位,理论上缓存时间可以很长,但实际上当系统资源紧张时,缓存空间还是会被系统收回。 VaryBy... 阅读全文
posted @ 2014-07-04 10:03 shuaixf 阅读(3388) 评论(1) 推荐(0)
摘要:Before proceeding with the topic first we mustunderstand "What isa Captcha code?" and "Why do we use them?". Most web sites havea Captcha validation in their sites.What is the Captcha code?A Captcha code is simply a combination of some characters and numbers like "Alk13" 阅读全文
posted @ 2014-01-04 10:53 shuaixf 阅读(290) 评论(0) 推荐(0)
摘要:Top 20 NuGet packages for captcha CaptchaMvc.Mvc4 CaptchaMvc will implement your web MVC applications easier and more reliable protect... 阅读全文
posted @ 2013-11-12 11:15 shuaixf 阅读(539) 评论(0) 推荐(0)
摘要:这一节演示下载.NET中怎样使用Redis存储数据.在.net中比较常用的客户端类库是ServiceStack,看下通过servicestack怎样存储数据。 DLL下载:https://github.com/ServiceStack/ServiceStack.Redis 下载完成后,DLL中... 阅读全文
posted @ 2013-11-07 20:21 shuaixf 阅读(1141) 评论(0) 推荐(0)
摘要:This is the final part of the series that started with... Callback and Multicast delegatesOne more EventAsynchronous Callback - Way 1 - BeginInvoke > ... 阅读全文
posted @ 2013-09-13 15:01 shuaixf 阅读(333) 评论(0) 推荐(0)
摘要:By now, I have shown the following usages of delegates...Callback and Multicast delegatesEventsOne more EventAsynchronous Callback - Way 1 - BeginInvoke > EndInvokeAsynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInvoke > AsynWaitHandle.Close()In this part, w 阅读全文
posted @ 2013-09-13 14:53 shuaixf 阅读(318) 评论(0) 推荐(0)
摘要:In this part of making asynchronous programming with delegates, we will talk about a different way, which is a little better thanWay 1. In the previou... 阅读全文
posted @ 2013-09-13 14:49 shuaixf 阅读(408) 评论(0) 推荐(0)
摘要:So far, I have discussed aboutCallback, Multicast delegates,Events using delegates, andyet another example of events using delegates. In this post, I ... 阅读全文
posted @ 2013-09-13 14:47 shuaixf 阅读(379) 评论(0) 推荐(0)
摘要:I was thinking that theprevious post on Events and Delegateswas quite self-explanatory. A couple of days ago, I received an email which said that may be it is not that good as to explain what I want to achieve in life through that event. So, I thought why not write another post on Delegates and Even 阅读全文
posted @ 2013-09-13 14:43 shuaixf 阅读(286) 评论(0) 推荐(0)
摘要:In myprevious post, I spoke about a few very basic and simple reasons of using delegates - primarilycallback. In this post, I'll talk about creating Events using delegates.I have tried to annotate the class with comments so that it is easy to comprehend. But IMHO, the best way to figure out what 阅读全文
posted @ 2013-09-13 14:32 shuaixf 阅读(330) 评论(0) 推荐(0)
摘要:I hear a lot of confusion around Delegates in C#, and today I am going to give it shot of explaining the stuff with easy to understand examples. First... 阅读全文
posted @ 2013-09-13 14:20 shuaixf 阅读(394) 评论(0) 推荐(0)