<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_AnyKoro_分类_asp.net相关</title><id>http://feed.cnblogs.com/blog/u/53802/category/233567/rss</id><updated>2012-05-27T23:38:45Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/category/233567.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/53802/category/233567/rss"/><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/12/16/2290246.html</id><title type="text">CSharp HttpClient</title><summary type="text">转自http://www.oschina.net/p/c-sharp-http-client这是一个HTTP 客户端开发包，提供非常简单的 API，采用 C# 编写用来发送 HTTP 请求以及接收 HTTP 回应。该库比 .NET 自带的 HttpWebRequest 要简单得多，类似 Java 版的HttpClient。支持 GET、POST 和文件上传，支持重定向和代理服务器。目前还不支持的：Transfer-Encoding: gzipRequests with keep-alive header.Expiration of cookies.Using proxies that need</summary><published>2011-12-16T07:13:00Z</published><updated>2011-12-16T07:13:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/16/2290246.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/12/16/2290246.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html</id><title type="text">URLENCODING,ASCII,UNICODE,UTF8,GBK</title><summary type="text">对于标题中所说的不同编码方式，我们下面逐一剖析。1、URL ENCODING URLs只可以使用ASCII字符集在Internet上传输。由于URLs经常会含有ASCII集之外的字符，此时URL就不得不将这些非ASCII的字符转换成有效的ASCII字符。另外，URL encoding还会将不安全的ASCII字符使用以“%”开头后面紧跟两个十六进制数的形式，进行替换。注意：URLs是不能包含空格的。URL encoding一般会使用“+”号去替换空格。当然，也可以使用%20，这两种其实是一样的，只是一般前者是使用如下代码会得到&lt;form name="input" tar</summary><published>2011-11-18T07:17:00Z</published><updated>2011-11-18T07:17:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/18/2254204.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/03/2234660.html</id><title type="text">让.net 2.0支持并行计算</title><summary type="text">Parallel Computations in C#是一个lib主要是在这个地址上http://www.codeproject.com/KB/cs/aforge_parallel.aspx</summary><published>2011-11-03T08:06:00Z</published><updated>2011-11-03T08:06:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/03/2234660.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/03/2234660.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/02/2233151.html</id><title type="text">【转】谈.Net委托与线程——创建无阻塞的异步调用</title><summary type="text">实在是好文，所以转下，原文链接http://www.cnblogs.com/smartls/archive/2011/03/08/1977276.html前言本文大部分内容来自于mikeperetz的Asynchronous Method Invocation及本人的一些个人体会所得，希望对你有所帮助。原英文文献可以在codeproject中搜索到。介绍这篇文章将介绍异步调用的实现机制及如何调用异步方法。大多数.NET开发者在经过delegate、Thread、AsynchronousInvocation之后，通常都会对以上概念产生混淆及误用。实际上，以上概念是.NET2.0版本中对并行编程的</summary><published>2011-11-02T07:48:00Z</published><updated>2011-11-02T07:48:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/02/2233151.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/02/2233151.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/11/01/2231084.html</id><title type="text">Visual Studio2010中unittest的xml文件路径error问题</title><summary type="text">【问题】在单元测试中需要访问自定义的xml文件，或config文件时，会遇到vs说找不到相应文件的情况。【原因】在visual studio做单元测试时，相关的xml结果会默存放在一个output文件夹中，但是由于单元测试的默认机制，每次都会在TestResult中根据当前时间新建一个文件夹用以存放会用到的config文件和dll文件。这个时候就会出问题了。TestResult的OUTPUT目录是在testsetting里面设置的。而config文件的copy to Output Directory(选中config文件，选择properties)的属性是针对Build而言的，这样就会导致两个</summary><published>2011-11-01T02:05:00Z</published><updated>2011-11-01T02:05:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/01/2231084.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/11/01/2231084.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/18/2216721.html</id><title type="text">C#中匿名方法变量共享原理分析</title><summary type="text">先上几篇我分析中用到例子的文章利用Reflector把“闭包”看清楚警惕匿名方法造成的变量共享进入正题，正向老赵说的那样，c#本来没有什么匿名方法之说，只是编译器施展的魔法。那么我们首先先看看老赵文中提出的，魔法施展的方法。“编译器将匿名方法中需要访问的所有成员一起包含在闭包中，确保所有的成员调用都符合.NET标准。”它的处理方式可以用老赵“友好化”处理的类来说明。源代码：class TestClass{ private void Print(string message) { Console.WriteLine(message); } public vo...</summary><published>2011-10-18T09:24:00Z</published><updated>2011-10-18T09:24:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/18/2216721.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/18/2216721.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html</id><title type="text">设计模式的精要理解（不断更新）</title><summary type="text">1、工厂模式本质：工厂模式的本质就是以不直接通过构造函数的方式实现构造之实。之所以叫“工厂”，是因为该手段（指实现的方法，可能是方法也可能是类）的作用是new一个对象出来，这个new的过程就如生产的过程。目的：1、更好地控制生成 2、同时由于中间多了一步，利用多态可以使得程序更灵活，更可扩展。</summary><published>2011-10-11T08:38:00Z</published><updated>2011-10-11T08:38:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2207481.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206874.html</id><title type="text">【转】WinDbg debug used command</title><summary type="text">0: kd&gt; !runawayNo export runaway foundThis is because: !runaway is a user-mode extension.There is no direct kernel-modeequivalent.0: kd&gt; .thread//查看转储文件时所有的线程Implicit process is now fffffa80`0231e3400: kd&gt; !threadfffffa80`0290aa60//查看该线程详细信息0: kd&gt; .process//查看转储文件时所有的线程Implicit process i</summary><published>2011-10-11T02:17:00Z</published><updated>2011-10-11T02:17:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206874.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206874.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206802.html</id><title type="text">.net托管代码和非托管代码的精要理解</title><summary type="text">托管代码：managed code非托管代码：unmanaged code在这里要理解一点，所有的代码都在.net framework里面，其中的代码本身没有托管不托管的概念。直到，引入了CLR(Common Language Runtime)后，才有了托管或不托管的概念。引入CLR的原因：编写C或C++时，我们都知道，需要对数组的边界要由考虑，否则会出现数组溢出的情况。这个问题，只是在软件开发中遇到的众多程序问题中的一个，其他的还有诸如没有正常释放等。为了能提高开发的效率，也提高程序的可靠性。那么就只有牺牲一部分的性能，来提出一个可以统一管理或监控的中间程序，该程序就是CLR。在这里微软也为</summary><published>2011-10-11T01:19:00Z</published><updated>2011-10-11T01:19:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206802.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/11/2206802.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2010/03/08/1680487.html</id><title type="text">[转]asp.net mvc 获取IP方法的扩展</title><summary type="text">asp.net mvc 获取IP方法的扩展1.扩展方法必须在非泛型静态类中定义2.扩展方法必须是静态的3.不能在静态类中声明实例成员public static class PubMethod { public static string GetIP(this Controller ctrl) { string ip; if (ctrl.HttpContext.Request.ServerVaria...</summary><published>2010-03-07T16:29:00Z</published><updated>2010-03-07T16:29:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2010/03/08/1680487.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2010/03/08/1680487.html"/><content type="text">asp.net mvc 获取IP方法的扩展1.扩展方法必须在非泛型静态类中定义2.扩展方法必须是静态的3.不能在静态类中声明实例成员public static class PubMethod { public static string GetIP(this Controller ctrl) { string ip; if (ctrl.HttpContext.Request.ServerVaria...</content></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2010/02/16/1668770.html</id><title type="text">[转]详解ASP.NET 4中的URL Routing功能</title><summary type="text">本文将从URL Routing的概念开始讲起，同时介绍ASP.NET 4.0中关于URL Routing的功能问题。希望本文能对大家有所帮助。 什么是URL Routing 首先，URL routing其实在ASP.NET 5 SP1中就被引入了，但是介于之前一直没有用到，况且微软的很多关于ASP.NET 4的介绍都本文将从URL Routing的概念开始讲起，同时介绍ASP.NET 4.0中关于...</summary><published>2010-02-16T09:37:00Z</published><updated>2010-02-16T09:37:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/16/1668770.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/16/1668770.html"/><content type="text">本文将从URL Routing的概念开始讲起，同时介绍ASP.NET 4.0中关于URL Routing的功能问题。希望本文能对大家有所帮助。 什么是URL Routing 首先，URL routing其实在ASP.NET 5 SP1中就被引入了，但是介于之前一直没有用到，况且微软的很多关于ASP.NET 4的介绍都本文将从URL Routing的概念开始讲起，同时介绍ASP.NET 4.0中关于...</content></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668211.html</id><title type="text">[转]Nested MasterPage Not Firing Page_Load Event</title><summary type="text">Nested MasterPage Not Firing Page_Load EventI faced a situation today where I am trying to attach to the page_load event of a child nested master page to load some data on the master page itself. The ...</summary><published>2010-02-14T07:10:00Z</published><updated>2010-02-14T07:10:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668211.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668211.html"/><content type="text">Nested MasterPage Not Firing Page_Load EventI faced a situation today where I am trying to attach to the page_load event of a child nested master page to load some data on the master page itself. The ...</content></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668094.html</id><title type="text">[转]Routing with ASP.NET Web Forms</title><summary type="text">Routing with ASP.NET Web FormsScott Allen Code download available from the MSDN Code Gallery Browse the Code Online Contents What Is Routing? A Brief History of URL Rewriting Of Routes and Route Handl...</summary><published>2010-02-13T16:30:00Z</published><updated>2010-02-13T16:30:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668094.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2010/02/14/1668094.html"/><content type="text">Routing with ASP.NET Web FormsScott Allen Code download available from the MSDN Code Gallery Browse the Code Online Contents What Is Routing? A Brief History of URL Rewriting Of Routes and Route Handl...</content></entry></feed>
