<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_用技术改变生活_分类_随笔</title><id>http://feed.cnblogs.com/blog/u/7144/category/48078/rss</id><updated>2012-06-02T23:32:59Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/category/48078.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/7144/category/48078/rss"/><entry><id>http://www.cnblogs.com/jun1st/archive/2010/03/01/1676061.html</id><title type="text">Application之间共享Master Page</title><summary type="text">  Master Page使得我们能够在不同的页面之间，共享一个页面框架。但是在如果我们需要在不同的application之间共享同一个master页面呢？在实际应用中，我们可能会碰到这样的情况。公司有一个类似与Portal这样的门户，用户首先访问这个网站，再通过链接进入各个子网站，但是Portal和子网站之间要保持风格上的一致。 但是ASP.NET 并没有提供我们一种简单的方式，来使...</summary><published>2010-03-01T13:51:00Z</published><updated>2010-03-01T13:51:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2010/03/01/1676061.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2010/03/01/1676061.html"/><content type="text">  Master Page使得我们能够在不同的页面之间，共享一个页面框架。但是在如果我们需要在不同的application之间共享同一个master页面呢？在实际应用中，我们可能会碰到这样的情况。公司有一个类似与Portal这样的门户，用户首先访问这个网站，再通过链接进入各个子网站，但是Portal和子网站之间要保持风格上的一致。 但是ASP.NET 并没有提供我们一种简单的方式，来使...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2009/10/26/aspnetclientid.html</id><title type="text">体验ASP.NET4之ClientID</title><summary type="text">在ASP.NET中，我们赋给一个服务器端控件的ID值，并非真正这个控件在浏览器中展现时的Html的ID值，Framework会默认把父控件的ID值用”_”区分附加到自己的ID前面，因此我们在Html中看到的ID值通常是这个样子的:”ctl0_UserControl1_ctl01_Textbox1“。 这一ID的生成方式对于后台代码来说，并没有什么影响，但是却给客户端的操作带来了很多的不便。比如，...</summary><published>2009-10-26T15:17:00Z</published><updated>2009-10-26T15:17:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2009/10/26/aspnetclientid.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2009/10/26/aspnetclientid.html"/><content type="text">在ASP.NET中，我们赋给一个服务器端控件的ID值，并非真正这个控件在浏览器中展现时的Html的ID值，Framework会默认把父控件的ID值用”_”区分附加到自己的ID前面，因此我们在Html中看到的ID值通常是这个样子的:”ctl0_UserControl1_ctl01_Textbox1“。 这一ID的生成方式对于后台代码来说，并没有什么影响，但是却给客户端的操作带来了很多的不便。比如，...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2009/08/25/1553929.html</id><title type="text">使用Extension Methods来使IDataReader更加方便</title><summary type="text">今天在逛老赵的Blog的时候，看到了他的常用辅助方法收集一文，想到了自己之前看到的并应用在项目中的一个方法，响应老赵的号召，拿出来晒晒。   在使用DataReader读取数据时，通常会遇到数据可能为Null, 但是又需要转换为如int等其它类型的数据，因此就通常会写这样的代码： int count = reader["count"] == null ? 0 :...</summary><published>2009-08-25T14:09:00Z</published><updated>2009-08-25T14:09:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2009/08/25/1553929.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2009/08/25/1553929.html"/><content type="text">今天在逛老赵的Blog的时候，看到了他的常用辅助方法收集一文，想到了自己之前看到的并应用在项目中的一个方法，响应老赵的号召，拿出来晒晒。   在使用DataReader读取数据时，通常会遇到数据可能为Null, 但是又需要转换为如int等其它类型的数据，因此就通常会写这样的代码： int count = reader["count"] == null ? 0 :...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2009/04/01/1427606.html</id><title type="text">IIS and VS Embedded Local Web Server</title><summary type="text">IIS and VS Embedded Local Web Server</summary><published>2009-04-01T15:16:00Z</published><updated>2009-04-01T15:16:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2009/04/01/1427606.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2009/04/01/1427606.html"/><content type="text">IIS and VS Embedded Local Web Server</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2008/11/05/1327698.html</id><title type="text">Tech-Ed 2008 上海</title><summary type="text">这两天一直在参加微软上海的Tech-Ed 2008。感觉不怎么样，呵呵，稍微说上两句好多的人，吃饭分两拨还要排20几分钟的队伍。如果你是第一拨里的话，吃着吃着服务员还会告诉你：”不好意思，还有十分钟了！“Tech-Ed的主题似乎是各种微软的Cutting Edge的技术的推广，但是似乎广告占的比重越来越重了。比如，在一个介绍IE8的课程中，来了一个taobao的工程师，几乎...</summary><published>2008-11-05T15:28:00Z</published><updated>2008-11-05T15:28:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2008/11/05/1327698.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2008/11/05/1327698.html"/><content type="text">这两天一直在参加微软上海的Tech-Ed 2008。感觉不怎么样，呵呵，稍微说上两句好多的人，吃饭分两拨还要排20几分钟的队伍。如果你是第一拨里的话，吃着吃着服务员还会告诉你：”不好意思，还有十分钟了！“Tech-Ed的主题似乎是各种微软的Cutting Edge的技术的推广，但是似乎广告占的比重越来越重了。比如，在一个介绍IE8的课程中，来了一个taobao的工程师，几乎...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2008/08/31/1280772.html</id><title type="text">ASP.NET MVC的分页和导航</title><summary type="text">INTRODUCTION 更多的权利，就意味着更多的责任。在MVC中，我们几乎不再使用Drag and Drop来的各种控件，因此我们就不再受这些控件所提供的功能的限制，但是当然也就失去了这些控件所带来的好处和便利。比如GridView以及它所附带的分页功能。本文将利用LINQ的defered execution的特性来实现一个通用的分页和导航的PagedList。 CONTENT 为了是Page...</summary><published>2008-08-31T13:56:00Z</published><updated>2008-08-31T13:56:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2008/08/31/1280772.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2008/08/31/1280772.html"/><content type="text">INTRODUCTION 更多的权利，就意味着更多的责任。在MVC中，我们几乎不再使用Drag and Drop来的各种控件，因此我们就不再受这些控件所提供的功能的限制，但是当然也就失去了这些控件所带来的好处和便利。比如GridView以及它所附带的分页功能。本文将利用LINQ的defered execution的特性来实现一个通用的分页和导航的PagedList。 CONTENT 为了是Page...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2008/08/06/1261564.html</id><title type="text">LINQ and Pipeline Pattern</title><summary type="text">LINQ and Pipeline Pattern</summary><published>2008-08-05T16:06:00Z</published><updated>2008-08-05T16:06:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2008/08/06/1261564.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2008/08/06/1261564.html"/><content type="text">LINQ and Pipeline Pattern</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2008/07/09/1238871.html</id><title type="text">Why Would a .Net Programmer Learn Ruby On Rails(翻译)</title><summary type="text">你是一个.Net程序员。 你已经使用ASP.NET开发了很多的Web Application。 你已经花了大量的时间和精力来研究和利用ASP.NET的事件驱动模型和控件生命周期，并利用这些特性实现想要的功能。 你在你的开发中使用了Presentation Modal和Modal View Presenter Modal来给你的应用程序分层，使程序具有更好的可维护性和可测试性。 在你眼里，Ruby ...</summary><published>2008-07-09T06:18:00Z</published><updated>2008-07-09T06:18:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2008/07/09/1238871.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2008/07/09/1238871.html"/><content type="text">你是一个.Net程序员。 你已经使用ASP.NET开发了很多的Web Application。 你已经花了大量的时间和精力来研究和利用ASP.NET的事件驱动模型和控件生命周期，并利用这些特性实现想要的功能。 你在你的开发中使用了Presentation Modal和Modal View Presenter Modal来给你的应用程序分层，使程序具有更好的可维护性和可测试性。 在你眼里，Ruby ...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2008/05/30/1210387.html</id><title type="text">Asp.Net MVC---Walkthrough</title><summary type="text">Asp.Net MVC---Walkthrough在上一篇关于Asp.Net MVC的文章中，对Asp.Net MVC作了一个High level的介绍，有兴趣的园友可以看一下这里。概念性的东西讲完了，现在该是动手写点Code的时候了，用原版技术书上的话说就是：Time to get your hands dirty。（文章写到一半，Asp.Net MVC Preview3发布了，所以，本文的的P...</summary><published>2008-05-29T17:05:00Z</published><updated>2008-05-29T17:05:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2008/05/30/1210387.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2008/05/30/1210387.html"/><content type="text">Asp.Net MVC---Walkthrough在上一篇关于Asp.Net MVC的文章中，对Asp.Net MVC作了一个High level的介绍，有兴趣的园友可以看一下这里。概念性的东西讲完了，现在该是动手写点Code的时候了，用原版技术书上的话说就是：Time to get your hands dirty。（文章写到一半，Asp.Net MVC Preview3发布了，所以，本文的的P...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2007/12/27/1017532.html</id><title type="text">WCF之旅&amp;mdash;&amp;mdash;2 Contract</title><summary type="text">1.ServiceContract&amp;OperationContract GeneralContract定义了这一个Service能提供什么样的功能和服务(ServiceContract)，也告诉了调用这一Service的客户端或者其它的Service在调用时需要提供什么样的参数信息(DataContract)。因此，在SOA架构的系统中，Contract的定义是重中之重。本文将对Servi...</summary><published>2007-12-27T13:56:00Z</published><updated>2007-12-27T13:56:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2007/12/27/1017532.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2007/12/27/1017532.html"/><content type="text">1.ServiceContract&amp;OperationContract GeneralContract定义了这一个Service能提供什么样的功能和服务(ServiceContract)，也告诉了调用这一Service的客户端或者其它的Service在调用时需要提供什么样的参数信息(DataContract)。因此，在SOA架构的系统中，Contract的定义是重中之重。本文将对Servi...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2007/12/25/1014690.html</id><title type="text">WCF 之旅&amp;mdash;&amp;mdash;1</title><summary type="text">1.什么是WCF？ 根据微软官方的解释，WCF（之前的版本名为“Indigo”）是使用托管代码建立和运行面向服务（Service Oriented）应用程序的统一框架。它使得开发者能够建立一个跨平台的安全、可信赖、事务性的解决方案，且能与已有系统兼容协作。WCF是微软分布式应用程序开发的集大成者，它整合了.Net平台下所有的和分布式系统有关的技术，例如.Net Remoting、ASMX、WSE和...</summary><published>2007-12-25T14:24:00Z</published><updated>2007-12-25T14:24:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2007/12/25/1014690.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2007/12/25/1014690.html"/><content type="text">1.什么是WCF？ 根据微软官方的解释，WCF（之前的版本名为“Indigo”）是使用托管代码建立和运行面向服务（Service Oriented）应用程序的统一框架。它使得开发者能够建立一个跨平台的安全、可信赖、事务性的解决方案，且能与已有系统兼容协作。WCF是微软分布式应用程序开发的集大成者，它整合了.Net平台下所有的和分布式系统有关的技术，例如.Net Remoting、ASMX、WSE和...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2007/09/18/897473.html</id><title type="text">Asp.Net Ajax用JavaScript调用服务器端代码</title><summary type="text">微软的Asp.Net Ajax框架使得实现AJAX功能变得非常的简单，但是在实际使用的过程中，还是可能会碰到很多的问题。今天，为了实现在用户焦点离开一个输入框的时候，能够从数据库查询相应的信息，并且填如相应的输入框中，就简单用了一下这个Ajax框架。碰到了不少问题，也Google了不少时间，才终于成功的运行起来了。首先，给输入框添加焦点失去的事件。我选择用OnBlur，不知道是不是最正确的，^_^...</summary><published>2007-09-18T09:19:00Z</published><updated>2007-09-18T09:19:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2007/09/18/897473.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2007/09/18/897473.html"/><content type="text">微软的Asp.Net Ajax框架使得实现AJAX功能变得非常的简单，但是在实际使用的过程中，还是可能会碰到很多的问题。今天，为了实现在用户焦点离开一个输入框的时候，能够从数据库查询相应的信息，并且填如相应的输入框中，就简单用了一下这个Ajax框架。碰到了不少问题，也Google了不少时间，才终于成功的运行起来了。首先，给输入框添加焦点失去的事件。我选择用OnBlur，不知道是不是最正确的，^_^...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2006/09/14/503700.html</id><title type="text">log4net和SQL Server 2000</title><summary type="text">log4net是在项目中很常用的一个日志工具,用来记录系统的各种信息和一些异常情况. log4net可以把信息以各种方式输出.关于log4net的介绍和使用,官方网站上有详细的说明.今天在使用log4net的时候遇到几个问题,想和大家讨论一下. 以log4net官网上的那个例子为例:配置文件如下:1&lt;appendername="AdoNetAppender"type="log4net.App...</summary><published>2006-09-13T16:30:00Z</published><updated>2006-09-13T16:30:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2006/09/14/503700.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2006/09/14/503700.html"/><content type="text">log4net是在项目中很常用的一个日志工具,用来记录系统的各种信息和一些异常情况. log4net可以把信息以各种方式输出.关于log4net的介绍和使用,官方网站上有详细的说明.今天在使用log4net的时候遇到几个问题,想和大家讨论一下. 以log4net官网上的那个例子为例:配置文件如下:1&lt;appendername="AdoNetAppender"type="log4net.App...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2006/03/28/361186.html</id><title type="text">最美的十大精典爱情句子</title><summary type="text">最美的十大精典爱情句子1) I love you not because of who you are, but because of who I am when I am with you. 我爱你，不是因为你是一个怎样的人，而是因为我喜欢与你在一起时的感觉。 2) No man or woman is worth your tears, and the one who is, won&amp;...</summary><published>2006-03-28T11:16:00Z</published><updated>2006-03-28T11:16:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2006/03/28/361186.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2006/03/28/361186.html"/><content type="text">最美的十大精典爱情句子1) I love you not because of who you are, but because of who I am when I am with you. 我爱你，不是因为你是一个怎样的人，而是因为我喜欢与你在一起时的感觉。 2) No man or woman is worth your tears, and the one who is, won&amp;...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2006/02/14/330712.html</id><title type="text">为什么总是会吵架呢？</title><summary type="text">好长时间以来，以为自己控制情绪的能力有了不少的提高，但是今天却又让我感觉到自己的EQ还是不行。早上在公司做事，PM过来对我说：“为什么你写的UI上面的控件都没有验证输入的？……”。后面那些废话就不提了。需求上并没有提到，她却把责任推到我一个刚大学毕业的人身上，一股无名之火在心中开始燃烧了…… 为了调节一下心情，找了个同学聊聊天...</summary><published>2006-02-14T14:11:00Z</published><updated>2006-02-14T14:11:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2006/02/14/330712.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2006/02/14/330712.html"/><content type="text">好长时间以来，以为自己控制情绪的能力有了不少的提高，但是今天却又让我感觉到自己的EQ还是不行。早上在公司做事，PM过来对我说：“为什么你写的UI上面的控件都没有验证输入的？……”。后面那些废话就不提了。需求上并没有提到，她却把责任推到我一个刚大学毕业的人身上，一股无名之火在心中开始燃烧了…… 为了调节一下心情，找了个同学聊聊天...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2006/02/08/327315.html</id><title type="text">感悟爱情</title><summary type="text">☆━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━☆ 世上的感情,不过两种：一种相濡以沫，却厌倦到终老; 一种相望于江湖,却怀念到哭泣!也许不是不曾心动，不是没有可能，只是有缘无份，情深缘浅，爱在不对的时间。想起那些划过生命的爱情，我们常常会把彼此的错过归咎为缘份，其实说到底，缘份是那么虚幻抽象的一个概念,真正影响我们的，往往就是那一时三刻相遇与相爱的时机,男女之间的交往，充满了犹疑忐...</summary><published>2006-02-08T12:40:00Z</published><updated>2006-02-08T12:40:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2006/02/08/327315.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2006/02/08/327315.html"/><content type="text">☆━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━☆ 世上的感情,不过两种：一种相濡以沫，却厌倦到终老; 一种相望于江湖,却怀念到哭泣!也许不是不曾心动，不是没有可能，只是有缘无份，情深缘浅，爱在不对的时间。想起那些划过生命的爱情，我们常常会把彼此的错过归咎为缘份，其实说到底，缘份是那么虚幻抽象的一个概念,真正影响我们的，往往就是那一时三刻相遇与相爱的时机,男女之间的交往，充满了犹疑忐...</content></entry><entry><id>http://www.cnblogs.com/jun1st/archive/2006/02/06/326265.html</id><title type="text">真的好长时间没来了!</title><summary type="text">由于上课的安排,上个学期都被安排去学习Java了,虽然Eclipse这个工具很不错,而且我也相当喜欢,但是还是放不下喜爱已久的.Net. 终于又可以开始我的.Net了,因为开始在一个还不错的软件公司实习,进入了.Net项目组,以后将会常来这里和大家讨论技术问题了,好开心的一件事</summary><published>2006-02-06T14:14:00Z</published><updated>2006-02-06T14:14:00Z</updated><author><name>Jun1st</name><uri>http://www.cnblogs.com/jun1st/</uri></author><link rel="alternate" href="http://www.cnblogs.com/jun1st/archive/2006/02/06/326265.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/jun1st/archive/2006/02/06/326265.html"/><content type="text">由于上课的安排,上个学期都被安排去学习Java了,虽然Eclipse这个工具很不错,而且我也相当喜欢,但是还是放不下喜爱已久的.Net. 终于又可以开始我的.Net了,因为开始在一个还不错的软件公司实习,进入了.Net项目组,以后将会常来这里和大家讨论技术问题了,好开心的一件事</content></entry></feed>
