|
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)
Tags: asp .net, Computing, datetime, maxvalue, Programming, serializable Categories: Computing, Programming
No Comments »
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 
Tags: asp .net, Computing, custom membershipprovider, extend, membership, microsoft, msdn, nhibernate, Programming Categories: Computing, Programming
No Comments »
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
Tags: 2.0, asp .net, professional asp, programmer, Reading Categories: Reading
No Comments »
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
Tags: 2.0, asp .net, cms system, Reading, server control Categories: Reading
No Comments »
|
|