Codeproject Highlight
Do you want to be informed the best stuffs of Codeproject every months? I have one good news for you. I’m gonna launch one new program called “Codeproject Highlight” started from this month in my blog. In this program, there will be there parts such as news, the best articles and the best posts in CP forum (mostly are from ASP.NET, Web development and C#. ).
The main reason why I start this program is that it saves your time for reading all of latest articles from CP’s feed and tracking all questions and answers from Codeproject forum.
News
Site Upgrading
The whole Codeproject site has been upgraded from Classic ASP to ASP.NET version with a lot of improvements . This is really big changes which is done during 8 years of running. As this site has really huge amount of traffic, it’s very hard for them to upgrade this site with new version. However, the CP development team has done the great job to upgrade the whole site successfully. Congratulation! CP team
Chris shared a few interesting things here ~
For those interested here are some whacky and amusing things we found:
- SQL Server, IIS and the ASP.NET framework are possessed.
- Using development settings instead of production settings is a Bad Thing.
- Storing session state in a SQL database can be a performance killer. Especially when the database is an old P4 test harness machine 40 km away from the webserver. That was an interesting experience in scream therapy.
- Always check your indexes. Especially the ones that absolutely positively are not and cannot be fragmented. They will be the ones most in need of attention.
- 20,000 users hitting your application is wonderful load testing. We did load test but our testing machines did not generate the load you guys can generate
- no matter how many ways you check code there’s always an angle that you haven’t looked at. We’re finding errors in 10 mins of being on that we couldn’t find from 3 months of beta testing. This is just nature.
The Best Articles
- Silverlight 1.1 Fun and Games by Sacha Barber

Sourcecode : Download Source
Note: This is an award-winning article of Visual Studio 2008 Competition.
- Silverlight Alien Sokoban by Daniel Vaughan
A fun Silverlight implementation of the game Sokoban. Contrasting Silverlight 1.1 and WPF, while showcasing some new features of C# 3.0, Expression Design, Expression Blend, and Visual Studio 2008.

Sourcecode : Download Source
- Build Google IG-like Ajax Start Page by Omar Al Zabir
Build a start page similar to Google IG in 7 nights using ASP.Net Ajax, .NET 3.0, Linq, DLinq and XLinq.

Sourcecode : Download Source
Demo : Ajax Web Portal
- WCF / WPF Chat Application by Sacha Barber
How to create a peer-to-peer chat application using Windows Communication Foundation

Sourcecode : Download Source
- ASP.NET Popup Control by Tomas Petricek
Highly customizable JavaScript popup control for web page wrapped in ASP.NET custom control.

Sourcecode : Download Source
Links
- Request Google´s Pagerank programmatically
- 10 SEO tips for your ASP.NET website
- Building ASP.NET Bot protection (CAPTCHA-like)
- Protect files for download
The best posts in Codeproject forum
- How to store the password in Database? Encrypting Vs Hashing, Salt
This is a discussion about storing the password in database. As the user authentication used to be a part of almost every software system, the developers should have good understanding about how to store the password in database. We have discussed about encrypting vs hashing, adding salt or adding the user name after the password and etc.
Summary
- Don’t use encryption/decryption for password.
- Don’t need to append the user name to the password.
- Hashing the password with random salt (SHA2 might be the best for hashing.)
You can read about it in the link below.
Read More ~ guidelines on password encryption
- Does the System.Deployment namespace cover a great deal of scenarios?
I have been asked this question regarding ClickOnce deployment in CP forum. As I’m using ClickOnce APIs on SCSF (Smart Client Software Factory) project, I found a few missing things in System.Deployment namespace. The following are the things that ClickOnce can’t handle.
Summary
- No way to get the list of latest modules
- The version of the whole application need to be updated if we wanna update just one module
- ClickOnce doesn’t care about the version of assemblies.
- DownloadFileGroup (”") works only if “optional” is checked. There is no way to download the group of file by force
Read More ~ An application that will get the updates from server automatically
- ADODB.DataTypeEnum.adBigInt problem “Bad variable type!” in Windows 2000
One people who are using ADODB in .NET asked the question below in our CP forum.
The identity field of one of my SQL DB tables is a bigint, using ADODB to query the DB based on this bigint works fine in my XP machine, but gives me a “Bad variable type” error when I use my app in a W2000 machine.
The W2000 machine has every service pack issued by MS, what could be the problem?
Something works fine on XP doesn’t work on Windows 200 is very strange issue. As I never use ADODB (something that we used for VB6 projects in old days ) in .NET, I don’t have that experiences. The possibilities that I think of at that time did solve his problem.
The trick is that casting the original datatype (long datatype in his case) to double datatype.
Honestly, I’m not so sure why we need to do this but it did solve the problem. Cmd.Parameters.Append(Cmd.CreateParameter("TransId", ADODB.DataTypeEnum.adBigInt, 1, , CType(iTransId, Double)))Read More ~ In XP works fine, W2000: Bad variable type!
Okay. That’s all for now. This is just a taste of new thing in my blog. What do you think? Is it interesting? As this program is just started, your feedback is highly appreciated. I think that there are a few area that I can’t add in this post. Based on the feedback from all of you, I will make this program better and interesting.. If you like it, don’t forget to subscribe my feed ( http://michaelsync.net/feed ).
Thanks.









