例一:在网站要目录下添加ValidateCode.aspx,路径自己定。ValidateCode.aspx:ValidateCode.aspx.cs:using 
System;using System.Collections.Generic;using System.Web;using System...
                            
                            
                                分类:
其他好文   时间:
2014-05-27 01:03:47   
                                阅读次数:
430
                             
                    
                        
                            
                            
                                一、前后台代码:Global.cs:using 
System.Web.Routing;。。。void Application_Start(object sender, EventArgs e) { // 
在应用程序启动时运行的代码 //RegisterRoutes(); RegisterRoutes...
                            
                            
                                分类:
Web程序   时间:
2014-05-24 04:47:43   
                                阅读次数:
295
                             
                    
                        
                            
                            
                                1. 
错误:找不到方法:“System.Collections.Generic.Dictionary`2 
System.Web.Razor.Parser.CSharpCodeParser.get_RazorKeywords()”。解决方法:在web.config中删除:
                            
                            
                                分类:
Web程序   时间:
2014-05-24 01:34:56   
                                阅读次数:
1583
                             
                    
                        
                            
                            
                                using System;using 
System.Collections.Generic;using System.IO;using System.Linq;using 
System.Reflection;using System.Runtime.InteropServices;namespace...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 10:59:24   
                                阅读次数:
223
                             
                    
                        
                            
                            
                                参考资料《大话设计模式》Mediator(中介者)模式:使各个对象不需要显式的相互调用,从而使其耦合松散。using System;using 
System.Collections.Generic;using System.Linq;using System.Text;namespace 
ds_me...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 10:13:17   
                                阅读次数:
331
                             
                    
                        
                            
                            
                                http协议中的头信息和正文是采用空行分开,什么是空行呢?简单来说,就是\r\n\r\n。
所以将服务器返回的数据用\r\n\r\n分开后的结果,一个是头信息,一个是正文信息。
C#的代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
usi...
                            
                            
                                分类:
其他好文   时间:
2014-05-22 12:55:02   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                参考资料《大话设计模式》职责链模式:using System;using 
System.Collections.Generic;using System.Linq;using System.Text;namespace 
ds_chainofresponsibility{ class Progr...
                            
                            
                                分类:
其他好文   时间:
2014-05-20 12:52:03   
                                阅读次数:
328
                             
                    
                        
                            
                            
                                一:上图,不清楚的看代码注解,很详细了二:具体代码窗体代码using System;using 
System.Collections.Generic;using System.ComponentModel;using System.Data;using 
System.Drawing;using Sy...
                            
                            
                         
                    
                        
                            
                            
                                using System;using System.Collections.Generic;using 
System.Linq;using System.Text;using System.Data;using 
System.Data.SqlClient;namespace AddressBook{...
                            
                            
                                分类:
数据库   时间:
2014-05-20 10:08:21   
                                阅读次数:
328
                             
                    
                        
                            
                            
                                当你index一个document的时候,这个document被存储在一个单独的primary 
shard上。ES是怎么知道一个document所属的shard的呢?当我们创建了一个新的document,ES是怎么知道这个document是应该存储在shard1上还是shard2上的呢?这个进程不能...
                            
                            
                                分类:
其他好文   时间:
2014-05-19 16:40:38   
                                阅读次数:
181