.NET Zone is brought to you in partnership with:
  • submit to reddit
Prashant Khandelwal01/22/12
1966 views
1 replies

Introducing Visual Studio Achievements - Bringing Some Game To The Code

Another awesome stuff for developers from Microsoft! This past Wednesday Microsoftie Karsten Januszewski announced the Visual Studio Achievement Beta at Channel9. Guess what? as a developer, you are writing hundred lines of code every day without even...

Pieter De Rycke01/22/12
1839 views
0 replies

TransactionScope: transaction escalation behavior

Introduction In .Net version 2.0, Microsoft introduced the TransactionScope class. This class provides an implicit programming model in which distributed transaction are automatically managed by the framework. This programming model can...

Troy Hunt01/18/12
2907 views
0 replies

ASP.NET Session Hijacking with Google and ELMAH

I love ELMAH – this is one those libraries which is both beautiful in its simplicity yet powerful in what it allows you to do. Combine the power of ELMAH with the convenience of NuGet and you can be up and running with absolutely invaluable error...

Simone Chiaretta01/17/12
2685 views
0 replies

What’s new in ASP.NET MVC 4: slides and demo are now online

Today I had my first live webcast for Microsoft Belgium, about the new features released with ASP.NET MVC 4 at Build in September. There were around 80+ people registered and around 50 people attending, and almost nobody left before the end of the...

Chris Smith01/17/12
2431 views
0 replies

.NET: Avoid Using System.Uri for Domain Validation

Last time I talked about System.Uri, I was talking about a bug that prevents trailing dots from being used for REST resources. Now the issue is different: how about relying on System.Uri for domain validation?Orginally Authored by Rodrigo De CastroIt's...

Filip Ekberg01/16/12
2870 views
0 replies

Adapting to Inversion of Control and Dependency Injection

You might have come across the phrases IoC, Dependency Injection, Mocking among others, these are commonly used when talking about “Inversion Of Control” which is the full meaning of the abbreviation IoC. So what is this “IoC” that everyone is...

Joel Bennett01/16/12
2249 views
0 replies

Arrange - Act - Assert: Intuitive Testing for .NET

Today I have a new module to introduce you to. It’s a relatively simple module for testing, and you can pick it up in short order and start testing your scripts, modules, and even compiled .Net code. If you put it together with WASP you can pretty...

Ayende Rahien01/15/12
1697 views
0 replies

A meta post about negative code reviews

A lot of people seems to have problems whenever I post a code review. The general theme of the comments is mostly along the lines of: You are an evil person and a cyber bully to actually do those sort of things and humiliate people.You have something...

Hajan Selmani01/15/12
5744 views
0 replies

Sending emails using MvcMailer

MvcMailer is an interesting component that you can use for sending emails in ASP.NET MVC Framework. The very great thing is that it uses Razor view engine views as email templates and is pretty easy to setup and use. In this article you will see how to...

Greg Duncan01/15/12
3144 views
0 replies

Embedding a Firebird database in your .Net Project

Nazmi Altun's Blog - Using Embedded Firebird Database In .Net Projects "... This post will show an example of using an embedded firebird database in .NET/C# projects. What is FireBird? From its official web-site( http://www.firebirdsql.org)...

Joel Bennett01/13/12
3234 views
0 replies

PowerShell 3 Finally on the DLR!

For those of you living in a cave: PowerShell 3 will be released in Windows 8, and we got a CTP at roughly the same time as the Windows 8 Developer Preview was released (at Microsoft’s new //Build/ conference in September 2011). A second CTP was released...

Greg Duncan01/12/12
2579 views
0 replies

BugAid - A (Free for Non-Com Dev) Enhanced C# Debugging tool

BugAid - BugAid is free for non-commercial open source projects! "We here at BugAid Software are really big fans of the .NET open source community. From NuGet to NHibernate to NUnit, you can hardly do any serious .NET development work today...

Simone Chiaretta01/11/12
5273 views
0 replies

The evolution of asynchronous controllers in ASP.NET MVC

Asynchronous controllers are as easy to do as  standard controllersAsynchronous operations in ASP.NET MVC have always been left a bit behind. They appeared in ASP.NET MVC 2, remained untouched in v3, but now in MVC 4 (especially  in combination with...

Alexander Beletsky01/11/12
2025 views
0 replies

Using ASP.NET MVC Validation Mechanism without ASP.NET MVC

I get used to DataAnnotations for model validation very quickly. Indeed, it is great approach. You attribute you model with corresponding attributes, rest is done by framework. It is only ModelState.IsValid, all you have to do before starting...

Greg Duncan01/09/12
1563 views
0 replies

This Spy is no Cheat, MSSpy++ OSS alternate, WinCheat

About.com - C / C++ / C# - WinCheat - A Better MS Spy "I don't think the name is great as it sounds like a game hacking tool, but WinCheat is an excellent open source improved version of WinSpy by Microsoft developer Alin Constantin. Though it's...

John Fuex01/05/12
19880 views
6 replies

DZone Top Articles of 2011: The Code Sample (The Programmer’s Guide to Getting Hired)

Why you are being asked for a code sample and what it says about the employer. At some point during the developer recruiting process, any hiring manager with the remotest concept of due diligence is going to attempt to get a preview of what to expect...

Greg Duncan01/05/12
1826 views
2 replies

SocialCounter.Net, a .Net Library to get all those Social counts

Midnight Programmer - SocialCounter.NET - .NET Library To Get Social Stats Few months back I have shared a code snippet on my blog which will get Twitter followers count, Facebook page like counts and Feed readers count. Now I have release a...

Karthikeyan Anb...01/05/12
6884 views
0 replies

Installing and Developing ASP.NET MVC 4 Application

Introduction: In this article we are going to see how to install required tool for ASP.NET MVC 4 and develop a simple MVC 4 application using the Visual Studio 2010. Asp.Net MVC 4 framework is used for developing reliable application using the Model...

Pavel Savara01/04/12
5279 views
0 replies

Fluentator - generate fluent API for your structures

When working with nested structures like configuration or XML it is a bit of a pain with the syntax in C#. Consider this code below. The object initializes in C# 3.0, but it's still pretty far from ideal. The important point here is readability, which...

Michael Ceranski01/04/12
1828 views
0 replies

Getting Assembly Information Using Reflection

I recently took over a WPF application that needed a little bit of refactoring. One of the places that had a lot of repeated code was the about screen. By using reflection a bunch of properties were being created to display things like the assembly...

Pranay Rana01/01/12
3265 views
1 replies

Make your code Speak by using C# Region

Post for the beginner developer or for the developer who want their code to speak and easy to understand to other developer who is going to maintain the code, review the code etc. To achive this thing most of the people talks about commenting...

Gunnar Peipman01/01/12
2192 views
1 replies

ASP.NET MVC: Helper method to display date ranges

I have events web site where I want to show events start and end time to visitors. I wrote simple extension method called DisplayTimeRange() to display event time range on user-friendly manner. My goal is to show times as 01.01.2012 10:00 – 14:00 and...

Ayende Rahien12/30/11
1355 views
1 replies

Application analysis: Northwind.NET

For an article I am writing, I wanted to compare a RavenDB model to a relational model, and I stumbled upon the following Northwind.NET project. I plugged in the Entity Framework Profiler and set out to watch what was going on. To be truthful, I expected it...

Julian Bucknall12/30/11
1772 views
0 replies

JavaScript for C# developers: the Module Pattern (part 2)

Last time I talked about the simple module pattern. This is where you create a function that returns an object with behavior and state and that behavior and state is implemented (and made private) by using a closure. We showed this by using the module...

Paul Stack12/29/11
1154 views
1 replies

Features Nuget Would Benefit From

I look to Nuget as the package manager for Windows development in the same way that RubyGems is to Ruby development. This may be immature of me but it works for my scenarios. In comparing the different systems, I feel that Nuget is lacking a few key...