* Use Close or Dispose on objects that support it using the Using Statement
* Implement Finalize only if you hold unmanaged resources across client calls, UnManaged code should be removed, since it won't be managed by the CLR...
This article presents a simple algorithm and supporting data structures for implementing auto transitioning tiles in applications such as tile-based level editors like RPG Maker and the Starcraft level editor. When this functionality is implemented in a tile map editor, it significantly speeds up content generation and ensures consistent tile usage....
In the past couple of years, unit testing has gained tremendously in popularity; but while most developers understand the overall concept, certain aspects have been more elusive. Among these is how to effectively replace component servers for testing purposes. Most people call these replacements stubs or mocks, but as I will show in this article, these are only two types in a larger continuum of replacements....
I have a bunch of custom types that, for one reason or another, need to implement IDisposable. I want to make sure that the other developers on my team using this class always dispose of my types correctly. What can I do to warn one of my teammates if he forgets to call Dispose?...
Isn't it funny how the Microsoft® .NET Framework is thought of as an environment where you don't have to think about memory? Of course, what's one of the number one issues that continues to plague managed applications today? Memory! Why? When the garbage collector runs to reclaim memory, the common language runtime (CLR) suspends all the threads in the application—and no work gets done. When you're not getting any work done, you have a performance problem....
When using a Continuous Integration (CI) system, team members integrate application components early and often, up to several integrations a day per developer. Lest that idea set your teeth on edge, note that each integration is immediately checked and verified by an automated build to find any errors instantly. While the concept of CI might take some getting used to, it can be a valuable system....
A good text editor is an essential tool for every programmer. A programmer's choice of text editor is also one of the more frequent debates you will hear in the halls of conferences and workplaces. TextMate, a Mac OS X text editor, has quickly risen to popularity on that platform based on its ease of use and powerful extensibility capabilities. E Text Editor is a new text editor that tries to bring that same simplicity and powerful extensibility to the Windows® platform....
When coordinating code between a master page, a child page and several controls, it can be very useful to have a listing of when each event is fired. There are a lot of lists on the web but they are rarely complete, and I have yet to find the code on how the lists were created. In the end I wrote my own testing framework, which is the topic of this article....
"Yet another Monday morning at your office. Just started to wonder how fast the weekend just passed away, and how hard are the days going to be in this week. You got a mail! Oh no, not a lucrative job offer. Its just another requirement from your new client. Your client has a number of Asp.net of sites, and all he wants is to enable his users to log onto all sites just by logging into a single site. And, obviously, log out of all sites by logging out from a single site....
This article explains how to display thousands or millions of data in GridView in ASP.Net 3.5.
Our main goal is to achieve super fast performance of gridview when it display large amount of data. When user navigates through data, they should not have feeling that they are navigating to millions of data....
Infragistics delivers ASP.NET AJAX controls that are robust, lightweight, high-performing across browsers, and that leverage their expertise in creating superior user experiences for your application’s user interface. The ASP.NET AJAX controls in NetAdvantage for Web Client give you what you need t This article is in the Product Showcase section for our sponsors at The Code Project. These reviews are intended to provide you with information on products and services that we consider useful and...
One of the features of SmartNavigation is preserving the scroll position in longer pages. However, SmartNavigation only works with Internet Explorer. And another issue is, using SmartNavigation may cause some JavaScript errors. As a web developer, I need to preserve scroll position in longer pages to prevent the visitor be lost in the page....