Click here to Skip to main content
14,982,471 members
This competition has ended

Best overall article of February 2011

Contribute to CodeProject and you'll automatically be in the running for a monthly prize!

Each month at CodeProject we gather together the best of the articles submitted the previous month and ask our readers to choose the best of the best. Entry is automatic - just submit you articke and we'll do the rest.

Check out the submission guidelines for information on posting articles.

Current Entries

Articles that match the contest criteria are automatically entered. The top 50 entries are shown.

Please Sign up or sign in to vote.
9 Feb 2011
Robert Rohde
This one should outperform both the other methods for longer strings because of the StringBuilder.string s = "AbCdEfGhI§$%&/()1234567890";var sb = new StringBuilder(s.Length);foreach (char c in s) sb.Append(char.IsUpper(c) ? char.ToLower(c) : char.ToUpper(c));s =...
Please Sign up or sign in to vote.
1 Mar 2011
Tim Stevens
An updated version of the code in David A Jones' article "Memory Leak Detection"
Please Sign up or sign in to vote.
16 Feb 2011
jim lahey
Or you could just pop over to:http://www.connectionstrings.com/[^]Use the exhaustive samples they provide and not hard code your connection strings by using a standard .NET configuration file:http://msdn.microsoft.com/en-us/library/1xtk877y.aspx[^]
Please Sign up or sign in to vote.
6 Feb 2011
Brij
Why textbox persists data during postback even if View State set to off
Please Sign up or sign in to vote.
12 Feb 2011
Sandeepkumar Ramani
Parallelism in .NET – PLINQ
Please Sign up or sign in to vote.
8 Feb 2011
OriginalGriff
When I add a log reader, the size of the log can be huge, and get very slow to view. This makes the GridView do all the work of paging the data for you.
Please Sign up or sign in to vote.
16 Mar 2011
Abhishek Sur
Inversion of Control: Practical usage of Interface, Delegate or Events
Please Sign up or sign in to vote.
3 Jun 2014
DaveAuld
1 alternative  
Using Enum to provide a quick and easy option lists
Please Sign up or sign in to vote.
19 Feb 2011
#realJSOP
2 alternatives  
Determine the number of unique colors in an image
Please Sign up or sign in to vote.
3 Feb 2011
Inaki Ayucar
How to get exactly what you need using DirectoryInfo.GetFiles, with an exact extension match lookup
Please Sign up or sign in to vote.
9 Feb 2011
#realJSOP
StringBuilder mystring = new StringBuilder("AbCd");for (int i = 0; i
Please Sign up or sign in to vote.
26 Feb 2011
Abhishek Sur
Dependency Injection & IoC
Please Sign up or sign in to vote.
20 Dec 2012
Wendelius
1 alternative  
This tip describes how to delete duplicate rows from a table that doesn't have a key.
Please Sign up or sign in to vote.
16 Mar 2011
Abhishek Sur
Get Reflected use TypeDescriptor
Please Sign up or sign in to vote.
26 Feb 2011
Kunal Chowdhury «IN»
Multi Targeted Add Reference Support in Productivity Power Tools
Please Sign up or sign in to vote.
20 Feb 2011
rusanu
In this article, I will go over an alternative approach that relies on the FILESTREAM column types introduced in SQL Server 2008.
Please Sign up or sign in to vote.
12 Feb 2011
PrafullaVedante
2 alternatives  
Avoid using "if" with no code block parenthesis
Please Sign up or sign in to vote.
17 Feb 2011
John Gathogo
Catastrophic results associated with unqualified use of columns belonging to tables referenced on main query in a subquery
Please Sign up or sign in to vote.
1 Feb 2011
AlexCode
Image Sprites and CSS Classes creator
Please Sign up or sign in to vote.
14 Feb 2011
Shailendra P Singh
This article explains the auto-deployment of build using Microsoft Web deploy on build quality change event of TFS 2010
Please Sign up or sign in to vote.
21 Feb 2011
Arik Poznanski
In this post, I will show you how you can get the list of trends on Twitter.
Please Sign up or sign in to vote.
22 Feb 2011
wpfdev
This blog post is re-posted from www.eriklieben.com. Looking at the file tab of Word 2010, I’ve wondered if a WPF tab control could be transformed to this layout. At first, this felt like something that could never be done, without doing a lot of magic or building it from scratch...
Please Sign up or sign in to vote.
8 Feb 2011
rudigrobler
Simple Error Reporting on WP7 REDUX
Please Sign up or sign in to vote.
4 Feb 2011
Łukasz Bownik, Tomek Steclik
This article presents the use of inference engine to implement mechanisms that automatically detect design errors and generate design tips in CAD (Computer Aided Design) applications. The article discusses a number of implementation issues, that can be avoided by using an inference mechanisms. Th
Please Sign up or sign in to vote.
9 Feb 2011
Tomer Shamam
Design Time Support for MEF
Please Sign up or sign in to vote.
23 Feb 2011
gclass
At PDC 2009, Reed Townsend presented some very exciting multitouch samples in a presentation: Windows Touch Deep Dive. This blog covers the code behind of the custom 3D manipulations that were presented.
Please Sign up or sign in to vote.
23 Feb 2011
jasonalls
The solution in this tip will enable you to delete SSL certificates programmatically when you receive the error InvalidOperationException: Found multiple X.509 certificates.
Please Sign up or sign in to vote.
6 Feb 2011
mbcrump
Quick run through of the WP7 Developer Tools January 2011
Please Sign up or sign in to vote.
25 Feb 2011
Joel C Graff
A method for managing complex, event-driven interactions between controls
Please Sign up or sign in to vote.
14 Feb 2011
hjgode
Talking with G-sensors and vector algebra. Shake and Orientation detection.
Please Sign up or sign in to vote.
10 Feb 2011
Raymund Macaalay
Creating a Windows Service is easy, but it might be a bit tricky especially for those who are new to developing such a project.
Please Sign up or sign in to vote.
14 Feb 2011
DrABELL
Test Page for both Algorithms: http://webinfocentral.com/resources/toggleCaseAlgorithm.aspx[^]Algorithm by Robert R.: protected string ToggleCaseByRobert(string s) { var sb = new StringBuilder(s.Length); foreach (char c in s) ...
Please Sign up or sign in to vote.
11 Feb 2011
DrABELL
Interesting finding in regards to the Case Toggle Algorithm by Robert (see the following code snippet): protected string ToggleCaseByRobert(string s){ var sb = new StringBuilder(s.Length); foreach (char c in s) sb.Append(char.IsUpper(c) ? char.ToLower(c) :...
Please Sign up or sign in to vote.
15 Feb 2011
DrABELL
The computational efficiency of the Euclid's algorithm is much higher that the alternatives
Please Sign up or sign in to vote.
17 Feb 2011
dontumindit
While dealing with databases, sometimes there is a need to get a list of tables in the application
Please Sign up or sign in to vote.
22 Feb 2011
DrABELL
Following two Toggle Case Algorithms, implemented as "pure" .NET solution (no "unsafe" coding technique, all managed code) demonstrate the best performance, tested against a variety of text strings, containing: ASCII, Unicode, all Low case, all Upper case, long numeric strings (refer to the test...
Please Sign up or sign in to vote.
16 Mar 2011
Abhishek Sur
Internals of Anonymous Types
Please Sign up or sign in to vote.
8 Feb 2011
Bryian Tan
How to extract the text from a hyperlink and preserve other HTML tags
Please Sign up or sign in to vote.
6 Feb 2011
Goutam Patra
As an alternate, I would like to share the following query using the previous table definition using RANK:DECLARE @FirstTable table(FirstName varchar(20))DECLARE @SecondTable table (ID int, FirstName varchar(20), LastName varchar(20), FirstNameHashCode varchar(20), ...
Please Sign up or sign in to vote.
22 Feb 2011
Costica U
Here is another solution:IF OBJECT_ID( 'tempdb..#TestTable' ) IS NOT NULL BEGIN DROP TABLE #TestTable ENDCREATE TABLE #TestTable ( Column1 varchar(1), Column2 int )INSERT INTO #TestTable VALUES ('A', 1);INSERT INTO #TestTable VALUES ('A', 1); --...
Please Sign up or sign in to vote.
17 Feb 2011
paladin_t
Whatever, I agree with you, it would be worse in C / C++ code using macros.Suppose you got a multiline macro like this:#define some_macro \ do_something_1(); \ do_something_2();And using this macro without parenthesis:if(...) some_macro;orfor(...) ...
Please Sign up or sign in to vote.
12 Feb 2011
ozkary
Get File name from URL Path - ASP Classic
Please Sign up or sign in to vote.
1 Feb 2011
AlexCode
EF4 DbDataRecord ConvertTo
Please Sign up or sign in to vote.
4 Feb 2011
Scott Philip Brown
This is an implementation of Conway's Game of Life using F# and SDL.NET
Please Sign up or sign in to vote.
12 Feb 2011
ozkary
How to Deploy Files in Different Servers with Team Build
Please Sign up or sign in to vote.
9 Feb 2011
Wolfgang_Baron
If you really have to put everything into a single function and want to keep the code analyzable and maybe want to be able put some common code at the end, you can always use a success variable. The code does not slow down, as the compiler optimizes the sequenced if-conditions away and produces...
Please Sign up or sign in to vote.
12 Feb 2011
Yaron Naveh
A command line utility to generate WCF proxies from WSDL 2.0 documents.
Please Sign up or sign in to vote.
14 Feb 2011
DrABELL
Hi everybody-There is a question posted by Rod Kemp in regards to performance benchmarks used for both algorithms (see Alternate 4). The sample code snippet, pertinent to the "ToggleCaseByJohn" algorithm is as follows: DateTime dt = DateTime.Now; for (Int64 i = 0; i
Please Sign up or sign in to vote.
17 Feb 2011
Michael B. Hansen
Couldn't resist: The following is a rewrite of Alternative 9, ToggleCaseHA()This is an unmanaged version which does direct manipulation of the input stringunsafe static string ToggleCaseUnmanaged(string str){ fixed(char* p = str) { for(int i=str.Length-1;i!=-1;--i)...
Please Sign up or sign in to vote.
22 Feb 2011
Leom Burke
I have decided to split out the styling work into 2 posts as it would be a huge post to restyle even something so simple.

Current Participants

Those with articles that match the contest criteria are automatically entered.

#realJSOP
Software Developer (Senior) Paddedwall Software
United States United States
I've been paid as a programmer since 1982 with experience in Pascal, and C++ (both self-taught), and began writing Windows programs in 1991 using Visual C++ and MFC. In the 2nd half of 2007, I started writing C# Windows Forms and ASP.Net applications, and have since done WPF, Silverlight, WCF, web services, and Windows services.

My weakest point is that my moments of clarity are too brief to hold a meaningful conversation that requires more than 30 seconds to complete. Thankfully, grunts of agreement are all that is required to conduct most discussions without committing to any particular belief system.
Kunal Chowdhury «IN»
Technical Lead
India India

Kunal Chowdhury is a former Microsoft "Windows Platform Development" MVP (Most Valuable Professional, 2010 - 2018), a Codeproject Mentor, Speaker in various Microsoft events, Author, passionate Blogger and a Senior Technical Lead by profession.

He is currently working in an MNC located in India. He has a very good skill over XAML, C#, Silverlight, Windows Phone, WPF and Windows app development. He posts his findings, articles, tutorials in his technical blog (www.kunal-chowdhury.com) and CodeProject.


Books authored:


Connect with Kunal on:




Abhishek Sur
President
India India
Did you like his post?

Oh, lets go a bit further to know him better.
Visit his Website : www.abhisheksur.com to know more about Abhishek.

Abhishek also authored a book on .NET 4.5 Features and recommends you to read it, you will learn a lot from it.
http://bit.ly/EXPERTCookBook

Basically he is from India, who loves to explore the .NET world. He loves to code and in his leisure you always find him talking about technical stuffs.

Working as a VP product of APPSeCONNECT, an integration platform of future, he does all sort of innovation around the product.

Have any problem? Write to him in his Forum.

You can also mail him directly to abhi2434@yahoo.com

Want a Coder like him for your project?
Drop him a mail to contact@abhisheksur.com

Visit His Blog

Dotnet Tricks and Tips



Dont forget to vote or share your comments about his Writing
AlexCode
Architect
Switzerland Switzerland
Senior IT Consultant working in Switzerland as Senior Software Engineer.

Find more at on my blog.
Arik Poznanski
Software Developer (Senior) Verint
Israel Israel
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.

Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).
Brij
Software Developer (Senior)
India India
Brij is a 3-times Microsoft MVP in ASP.NET/IIS Category and a passionate .NET developer. More than 6 years of experience in IT field, currently serving a MNC as a Tech Lead/Architect.

He is a very passionate .NET developer and have expertise over Web technologies like ASP.NET 2.0/3.5/4.0, jQuery, JSON, Javascript, IIS and related technologies. He is also a Exchange Server (EWS) Specialist. He has great experience in design patterns and N-Tier Architecture.

He is also certified as Microsoft Certified Technologies Specialist-ASP.NET and Microsoft Certified Technologies Specialist-WCF in .NET 4.0. He has also received several awards at various forums and his various articles got listed as "Article of the day" at ASP.NET Microsoft Official Website www.asp.net.

He has done MCA from NIT Durgapur and completed his graduation from Lucknow University.

Learning new technologies and sharing knowledge excites him most. Blogging, solving problems at various forums, helping people, keeps him busy entire day.


Visit his Blog: Code Wala

Area of Expertise :
C#, ASP.NET 2.0,3.5,4.0, AJAX, JQuery, JSON, XML, XSLT, ADO.Net, WCF, Active Directory, Exchange Server 2007 (EWS), Java script, Web Services ,Win services, DotnetNuke, WSS 3.0,Sharepoint Designer, SQL Server 2000/2005/2008
Bryian Tan
Software Developer (Senior)
United States United States
I have over 10 years of experience working with Microsoft technologies. I have earned my Microsoft Certified Technology Specialist (MCTS) certification. I'm a highly motivated self-starter with an aptitude for learning new skills quickly.
Costica U
Software Developer
United States United States
No Biography provided
DaveAuld
Engineer
Scotland Scotland
I have been working in the Oil & Gas Industry for over 30 years now.

Core Discipline is Instrumentation and Control Systems.

Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.

Currently, Offshore Installation Manager in the Al Shaheen oil field, which is located off the coast of Qatar. Prior to this, 25 years of North Sea Oil & Gas experience.
dontumindit
Pakistan Pakistan
I am a learner.
DrABELL
Software Developer (Senior)
United States United States
Dr. Alexander Bell is a seasoned full-stack Software Engineer (Win/Web/Mobile). He holds PhD in Electrical and Computer Engineering, authored 37 inventions and published 300+ technical articles. Currently focused on multiple Android/Mobile development projects and Big Data' Machine Learning, AI, IoT. Alex participated in App Innovation Contests (AIC 2102/2013) with multiple winning submissions. Sample portfolio apps and publications:

  1. Publications by A. Bell
  2. Educational Web Portal
  3. Engineering Calculator VOLTA
  4. Aggregate Product function extends SQL
  5. Use SQL to generate large data sequence
  6. HTML5/CSS3 graphic enhancement: buttons, inputs
  7. Advanced CSS3 Styling of HTML5 SELECT Element
  8. enRoute: Real-time NY City Bus Tracking Web App
  9. YouTube™ API for ASP.NET
  10. HTML5 Tables Formatting: Alternate Rows, Color Gradients, Shadows
gclass
Web Developer Microsoft
United States United States
My name is Gus Class, I'm 29 years old, and I have been passionate about computers for my entire life. My first computer was an Apple IIgs and I begged my parents to get a PC (a 386!) around the time I had turned 7 or 8 which they begrudgingly caved in on. I came online for the first time in the early 90s through the Prodigy service which led me to the BBS scene and opened doors for learning the ins and outs of computing. I taught myself how to program in my teens, took vocational classes in high school on network administration through a magnet program, and earned a bachelor's degree in Computing and Software Systems through the University of Washington in 2003. In an effort to round out my education, I earned an MBA in 2008 while working full time at Microsoft.

I am currently a Content Project Manager at Microsoft where I have worked for the past 5 years. My work there has included writing sample code, creating compelling documentation to help developers adopt Windows features, managing sites, connecting with the developer audience through social media, mentoring and growing new hires and peers, developing tools to enhance productivity, and attending conferences as a Microsoft representative.

I enjoy a plethora of hobbies including rock climbing, DJing, electronic music production, recreational programming, creating web sites, playing and creating video games, and hanging out with social media mavens.
Goutam Patra
Technical Lead
India India
No Biography provided
hjgode
Germany Germany
No Biography provided
Inaki Ayucar
Software Developer (Senior)
Spain Spain
Inaki Ayucar is a Microsoft MVP in DirectX/XNA, and a software engineer involved in development since his first Spectrum 48k, in the year 1987. He is the founder and chief developer of The Simax Project (www.simaxvirt.com) and is very interested in DirectX/XNA, physics, game development, simulation, C++ and C#.

His blog is: http://graphicdna.blogspot.com

To contact Inaki: iayucar@simax.es
jasonalls
Software Developer Lucid Research Limited
United Kingdom United Kingdom
I have been programming software since 1999. My qualifications include CIW Associate, SCJP for the Java 1.4 Platform, MCAD using Visual C#, and PRINCE2 Practitioner.
jim lahey
Software Developer (Senior)
United Kingdom United Kingdom
First batch file in 1987

Messed around with the Bullfrog C++ Libraries for Syndicate in 1994

Web Developer since 2000

.net Developer since 2001

MCTS: Microsoft® .NET Framework 2.0 - Web-based Client Development

MCTS: Web Applications Development with Microsoft .NET Framework 4
Joel C Graff
United States United States
No Biography provided
John Gathogo
Software Developer (Senior)
Kenya Kenya
BSc. Degree Holder in Mathematics and Computer Science from Jomo Kenyatta University of Agriculture and Technology, Nairobi, Kenya. Currently involved in development of systems running on (but not exclusively) .NET platform. Has deep interest in the field of Artifical Intelligence, particularly Genetic Algorithms and Neural Networks.
Leom Burke
Software Developer (Senior)
United Kingdom United Kingdom
I am a developer currently working for a financial company in the UK with a focus on back end work using NServiceBus. Personally I also enjoy working with ASP.NET (MVC), WPF, ruby and investigating best practice using methods like TDD and bettering the quality of code.
Łukasz Bownik
Architect
Poland Poland
No Biography provided
mbcrump
Software Developer (Senior) Telerik
United States United States
Michael Crump is a Silverlight MVP and MCPD that has been involved with computers in one way or another for as long as he can remember, but started professionally in 2002. After spending years working as a systems administrator/tech support analyst, Michael branched out and started developing internal utilities that automated repetitive tasks and freed up full-time employees. From there, he was offered a job working at McKesson corporation and has been working with some form of .NET and VB/C# since 2003.

He has worked at Fortune 500 companies where he gained experience in embedded systems design and software development to systems administration and database programming, and everything in between.

His primary focus right now is developing healthcare software solutions using Microsoft .NET technologies. He prefers building infrastructure components, reusable shared libraries and helping companies define, develop and automate process standards and guidelines.

You can read his blog at: MichaelCrump.net or follow him on Twitter at @mbcrump.
Michael B. Hansen
Founder CWAIN
Denmark Denmark
I have a MCPD .NET 3.5 EAD and a Bsc in computer science, organizational theory and economics.
After more than 15 years working as professional system engineer, I founded the independent consultant agency CWAIN.
OriginalGriff
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?
ozkary
Architect OG-BITechnologies
United States United States
Software engineer, author & speaker who enjoys mentoring, learning, speaking and sharing with others about software development technologies. Microsoft MVP.

My Blog
paladin_t
Architect
China China
Video game player & creator; Hardware geek & maker.
PrafullaVedante
Software Developer (Senior) nVidia Corporation
India India
Prafulla is a passionate software developer. He has mostly worked on C++ and .NET projects. He has a Masters Degree in Software Systems from BITS, Pilani India. Currently he is working for nVidia corporation as a Senior System Engineer.

He is an embedded technology enthusiast. He likes to spend his time on electronics projects.
Raymund Macaalay
Technical Lead
New Zealand New Zealand
http://nz.linkedin.com/in/macaalay
http://macaalay.com/
Robert Rohde
Web Developer
Germany Germany
No Biography provided
rudigrobler
South Africa South Africa
No Biography provided
rusanu
bugcollect.com
United States United States
Remus Rusanu is a developer with the SQL Server team.
Sandeepkumar Ramani
Technical Lead
India India
I write software using Microsoft web technologies since 2008. I have successfully delivered software products for Fortune 500 companies and startups.

Microsoft Certified Technologies Specialist - Web Applications Development with Microsoft .NET Framework 4.

Awarded as Microsoft Community Contributor of the year 2011.

Received several awards at various forums and my various articles got listed as "Article of the day" at ASP.NET Microsoft Official Website https://www.asp.net/

Visit My Blog:
https://ramanisandeep.wordpress.com/


Area of Expertise:
C#, ASP.NET, Web Services, WCF, ASP.NET MVC, SQL Server, WEB API, AngularJS, jQuery
Scott Philip Brown
Software Developer
Australia Australia
No Biography provided
Shailendra P Singh
Software Developer
India India
I am a Microsoft technology enthusiast having experience on various flavors of Microsoft Technologies which includes ASP.Net, Winforms to Silverlight, WPF.

I hold MCTS Certification on .Net 2.0 and Silverlight 4.0
Tim Stevens
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided
Tomer Shamam
Architect CodeValue
Israel Israel
Tomer Shamam is a Software Architect and a UI Expert at CodeValue, the home of software experts, based in Israel (http://codevalue.net). Tomer is a speaker in Microsoft conferences and user groups, and in-house courses. Tomer has years of experience in software development, he holds a B.A degree in computer science, and his writings appear regularly in the Israeli MSDN Pulse, and other popular developer web sites such as CodePlex and The Code Project. About his thoughts and ideas you can read in his blog (http://blogs.microsoft.co.il/blogs/tomershamam).
Wendelius
Architect
Europe Europe
Biography provided
Wolfgang_Baron
Technical Lead private interest
Germany Germany
No Biography provided
wpfdev
United States United States
No Biography provided
Yaron Naveh
Software Developer (Senior)
Israel Israel
Web services interoperability expert.

http://webservices20.blogspot.com/
You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011