Tags:

.NET bug on DateTime.MaxValue?

03/08/2007 13:14

Not sure if my problem can be considered as a bug. But when I try to compare a DateTime with MaxValue, it already returns false.

Code:
DateTime aDate = DateTime.MaxValue;
Console.WriteLine(DateTime.Compare(DateTime.MaxValue, aDate));

Very simply code, can you guess what you will get “0″, which means they are not equal!!

Some people says it caused by “DateTime.MaxValue is not serializable” (http://blogs.ugidotnet.org/teo/archive/2005/11/21/30271.aspx)

Dig into ASP.NET Membership - Extend MembershipUser

22/07/2007 22:25

Membership in ASP .NET 2.0 is a great add-on. But I believe you will ask a question as soon as you start using it. “How can I add extral info to a user”. Normally I create a user will name, telephone number, company, etc. but the membershipuser wont let you do it. dont think membership is useless, MS gives you the option to extend it.

I spent some time this weekend to dig into how to extend the membership and successully getting it work. Yaaaa ^_^

I’d like to share my experience with you, so please leave comment. but before you do it, read this MSDN article first
http://msdn2.microsoft.com/en-us/library/ms366730.aspx

I also integrate the extended MembershipUser with my NHiberante MembershipProvider. They both work great :)

Professional ASP.NET 2.0 (Programmer to Programmer)

13/07/2007 21:53

Another one

  • Professional ASP.NET 2.0 (Programmer to Programmer)
  • Paperback: 1253 pages
  • Publisher: Hungry Minds Inc,U.S. (8 Nov 2005)
  • Language English
  • ISBN-10: 0764576100
  • ISBN-13: 978-0764576102
  • Product Dimensions: 23.4 x 18.8 x 6.4 cm

ASP.NET 2.0 Server Control and Componet Development

21:51

Re-start my .NET CMS system last month, I strongly feel lack of the knowledge on ASP.NET. I found the dusty .net book under office’s desk bought ages ago, and started to read it

  • ASP.NET 2.0 Server Control and Componet Development
  • Paperback: 1224 pages
  • Publisher: Hungry Minds Inc,U.S. (8 Aug 2006)
  • Language English
  • ISBN-10: 0471793507
  • ISBN-13: 978-0471793502
  • Product Dimensions: 23.4 x 18.8 x 5.8 cm