随笔分类 -  30.Asp.net

摘要:http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger网上表达式生成器:http://www.cronmaker.com/Introductioncronis a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. TheCronTriggerclass is based on the scheduling capabilities of 阅读全文
posted @ 2012-03-13 17:47 庚武 阅读(972) 评论(0) 推荐(0) 编辑
摘要:var container = new WindsorContainer();container.Register(Component.For<SauceBéarnaise>());SauceBéarnaise sauce = container.Resolve<SauceBéarnaise>();var container = new WindsorContainer();container.Register(Component.For<IIngredient>().ImplementedBy<SauceBéa 阅读全文
posted @ 2012-03-12 12:15 庚武 阅读(750) 评论(1) 推荐(1) 编辑
摘要:I recently wrote a post about how to set up CW’s IOC container for applications. This post covered the most basic implementation to get an IOC container up and running. It is now time to cover a proper architecture for using IOC specifically for web applications / sites.The main problem with the pre 阅读全文
posted @ 2012-03-12 12:13 庚武 阅读(414) 评论(0) 推荐(0) 编辑
摘要:from:http://mvcsharp.wordpress.com/2010/01/09/setting-up-ioc-in-asp-net-mvc-using-castle-windsor/Abstract: This post gathers information needed to setting up Inversion of Control (IoC) in an ASP.NET MVC application using Castle Windsor.Introduction: Inprevious postI summarized how ASP.NET MVC compon 阅读全文
posted @ 2012-03-09 17:29 庚武 阅读(687) 评论(0) 推荐(1) 编辑
摘要:http://msdn.microsoft.com/en-us/library/ms973868Global.asaxThe Global.asax file is similar to the Global.asa file in ASP, albeit that there are many more events available in ASP.NET. Also, Global.asax is compiled instead of interpreted as it is in ASP. You still have event procedures that fire withi 阅读全文
posted @ 2012-03-09 14:01 庚武 阅读(171) 评论(0) 推荐(0) 编辑
摘要:http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.80).aspxhttp://www.codeproject.com/Articles/17768/ADO-NET-Connection-Pooling-at-a-GlanceThe following table lists the valid names for connection pooling values within theConnectionString. For more infor 阅读全文
posted @ 2012-03-07 16:58 庚武 阅读(304) 评论(0) 推荐(0) 编辑
摘要:ASP.NET provides three primary forms of caching: page level output caching, user control level output caching (or fragment caching), and the Cache API. Output caching and fragment caching have the advantage of being incredibly simple to implement, and are sufficient in many cases. The cache API prov 阅读全文
posted @ 2012-03-01 12:58 庚武 阅读(250) 评论(0) 推荐(0) 编辑
摘要:http://msdn.microsoft.com/en-us/library/e1f13641.aspxhttp://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx<httpRuntime apartmentThreading = "[True|False]" appRequestQueueLimit = "number" delayNotificationTimeout = "number" enable = "[True|False]" enableHead 阅读全文
posted @ 2012-02-04 15:02 庚武 阅读(1399) 评论(0) 推荐(0) 编辑
摘要:转:http://stackoverflow.com/questions/1826657/page-generation-time-asp-net-mvcpublic class PerformanceMonitorModule : IHttpModule{ public void Init(HttpApplication context) { context.PreRequestHandlerExecute += delegate(object sender, EventArgs e) { //Set Page Timer Sta... 阅读全文
posted @ 2012-02-04 14:18 庚武 阅读(367) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-02-02 12:09 庚武 阅读(1) 评论(0) 推荐(0) 编辑
摘要:AppendersThe ability to selectively enable or disable logging requests based on their logger is only part of the picture. Log4net allows logging requests to print to multiple destinations. In log4net speak, an output destination is called an appender. Appenders must implement the log4net.Appenders.I 阅读全文
posted @ 2011-12-14 23:44 庚武 阅读(494) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-10-29 01:08 庚武 阅读(5) 评论(1) 推荐(0) 编辑
摘要:http://www.intrepidstudios.com/blog/2010/7/11/debug-your-net-web-project-with-iis-express-t.aspxUpdate:IIS Express has beenofficially releasedas a standalone installation.For those of us too impatient to wait for Visual Studio SP1 to natively support IIS Express, I've done some digging and found 阅读全文
posted @ 2011-10-18 01:44 庚武 阅读(680) 评论(1) 推荐(0) 编辑
摘要:Service1.asmx.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace TestWebServiceForFlex{ /// <summary> /// Service1 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(Conform 阅读全文
posted @ 2011-06-08 12:37 庚武 阅读(631) 评论(0) 推荐(0) 编辑
摘要:http://wenku.baidu.com/view/217ff860caaedd3383c4d3f9.htmliisexpress /path:<网站目录> /port:<端口> /clr:<CLR版本,V2.0|V4.0>IISExpress会复制一份配置文件到临时目录... 阅读全文
posted @ 2011-06-06 22:21 庚武 阅读(269) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-04-24 01:00 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提供动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但是客户端可以用任何语言来编写,并通过memcached协议与守护进程通信。但是它并不提供冗余(例如,复制其hashmap条目);当某个服务器S停止运行或崩溃了,所有存放在S上的键/值对都将丢失。Memcached官方:http://danga.com/memcached/关于Memcached的介绍请参考:Memca. 阅读全文
posted @ 2011-03-01 17:29 庚武 阅读(61649) 评论(9) 推荐(6) 编辑
摘要:Form授权OverView: http://msdn.microsoft.com/en-us/library/9wff0kyh.aspxhttp://msdn.microsoft.com/en-us/library/xdt4thhyHow to: Implement Simple Forms Authentication<system.web> <authentication mode="Forms"> <forms loginUrl="logon.aspx" name=".ASPXFORMSAUTH" 阅读全文
posted @ 2011-02-24 14:59 庚武 阅读(296) 评论(0) 推荐(0) 编辑
摘要:Validation是jQuery的一個很強的驗證使用者輸入的plugin,功能強就算了,還非常的有彈性,可以客制非常多的東西,這次要介紹的是7個Callback使用,讓用Validation更隨心所欲。 Callback 說明 預設值 submitHandler 在Submit之前,且所有驗證成功,可以在這裡改成用$.ajax()送出。 default (native) form submit invalidHandler 在Submit之前,且驗證失敗。 沒有 success 單項證驗成功,參數是err 阅读全文
posted @ 2011-01-24 14:45 庚武 阅读(429) 评论(0) 推荐(0) 编辑
摘要:示例代码: 阅读全文
posted @ 2010-12-18 15:21 庚武 阅读(331) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示