Ning's Blog

http://www.uniq.cn
29

AjaxPro实例

http://www.ajaxpro.info/  (官方网站)

新项目抛弃ASP.NET Ajax而使用AjaxPro,以前没有接触过,所以做了一个最简单的Demo。

以上网站上下载最新版本,目前为7.7.31.1,如果是.net 2.0就一个Dll就够了,就是AjaxPro.2.dll。

1、修改Web.config。在<system.web>元素中添加以下代码。
<httpHandlers>
<!-- Register the ajax handler -->
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/> </httpHandlers>

阅读全文>>

收藏
29

SQL Server 的 Datatime 类型为什么不能早于 1753 年?

Good question. There are historical reasons for this limitation. In what we sometimes refer to as the "Western world," there have been two calendars in modern times: the Julian and Gregorian calendars. These calendars were a number of days apart (depending on which century you looked at), so when a culture that used the Julian calendar moved to the Gregorian calendar, it removed from 10 to 13 days. Great Britain made this shift in 1752. (So, in that year, September 2, 1752 was followed by September 14, 1752.)

An educated guess as to why Sybase SQL Server—the predecessor of Microsoft SQL Server—selected 1753 as the earliest date is that if you were to store a date earlier than 1753, you would also have to know which country was using which calendar and also handle this 10- to 13-day jump. So Sybase decided to not allow dates earlier than 1753. Note, too, that other countries made the shift later than 1752. Turkey, for instance, did it in 1927.

Being Swedish, I find it amusing that Sweden had the weirdest implementation. Sweden originally planned to skip every February 29, leap day, over a period of 40 years (from 1700 to 1740) so that Sweden would be in sync with the Gregorian calendar after 1740 (but meanwhile not in sync with anyone else). However, in 1704 and 1708 the leap day wasn't skipped for some reason, so in 1712 (which was a leap year), Sweden inserted yet one more extra day (imagine being born in Feb 30!) and then made the shift over a day, in 1753, in a similar manner to everyone else.

收藏
25

35blog+独立域名+Windows Live Writer

以上是我认为最好的博客解决方案,35blog使用Wordpress,功能比较强大。支持OpenId、绑定顶级域名和离线发布等很多很好很实用的功能。配合Windows Live Writer,写博客真是一件非常愉快的事情。这样的服务即使收费也可以考虑,何况是免费,所以强烈推荐!

另外Windows Live Writer的确好用,对Wordpress的支持又非常好,赞一个.

收藏
25

TFS2008遇到的问题

    遇到此问题的原因应该是以前安装过Beta版的VS2008,后来安装VS2008 SP1费了很大劲,不过还好最后安装好了SP1.问题是无法在TFS Explorer里面新建WorkItem,每输入一个字都弹出一个讨厌的对话框提示如下:

Could not load type 'Microsoft.Teamfoundation.workItemTracking.Client.WorkItemTypeDeniedOrNotExistException' from assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
重新安装TFS没有任何作用,google了一下。重新安装Visual Studio Team Suite 2008 sp1,搞定了。

收藏
25

My first Azure solution(转载)

Just got an invitation code to play with the Azure stock - note that the activation code is per solution and you need a password

Creating a solution in Azure using .NET Services and SQL Services

Azure Services Create Solution

Remember to save the password for the solution. Password xxxxxx (save this in a notepad)

阅读全文>>

收藏