Home / ASP.NET Weblogs

June 2008 - Posts

Posted to:

ASP.NET MVC Tip #12 – Faking the Controller Context

In this tip, I show you how to test ASP.NET intrinsics when building unit tests for an ASP.NET MVC application. I show you how to create a standard set of fake objects that enables you to fake the current user, the current user roles, the request parameters...( read more ) Read More...
Filed under: , , ,
Posted to:
by: 
06-30-2008, 1:30 PM

Updated Talk: Building Great AJAX Applications from Scratch Using ASP.NET 3.5 and Visual Studio 2008

For my Mix Essentials talk in South Africa I updated my Mix08 talk Building Great AJAX Applications from Scratch Using ASP.NET 3.5 and Visual Studio 2008 to have a little more Africa feel... I used some photos from my safari at Mala Mala here this week.    Download the working sample and a set of starter demo files.  Hope you enjoy it! Read More...
Filed under: ,
Posted to:

SOS: Upcoming release has a few new commands – HeapStat

There are a lot of times where all you want to see are the sizes of the various heaps and generations.  For the heaps, you can use !eeheap -gc to see the sizes, but the output can be a little difficult to read as it prints out so much other stuff...
Filed under: , , , ,
Posted to:

An Introduction to xUnit.net for ASP.NET MVC Developers

The purpose of this blog entry is to provide you with an introduction to the xUnit.net unit testing framework, the newest unit testing framework for the .NET framework. I want to demonstrate how you can use the xUnit.net framework when practicing test...( read more ) Read More...
Filed under: , ,
Posted to:

A Back To Basics Case Study: Implementing HTTP File Upload with ASP.NET MVC including Tests and Mocks

A number of folks have asked me how to "implement the ASP.NET File Upload Control" except using ASP.NET. This is a really interesting question for a number of reasons and a great opportunity to explore some fundamentals. First, ASP.NET MVC is different since we don't get to use ASP.NET Server Controls as we're used to them. There's no "server controls" in the way that we're used to them. Second, it'd be important to write Unit Tests for something like File Upload, and since ASP.NET MVC tries to be Unit Test friendly, it's an interesting problem to do tests. Why is it interesting? Well, ASP.NET MVC sits on top of ASP.NET. That means ASP.NET MVC didn't do any special work for File Upload support...
Posted to:

Oh Yes It’s Ladies Night

…and the feeling’s right. If I can muster up the time and motivation, I like to try and post lighter more humorous fare on Fridays such as my recent RAS Syndrome post . On this beautiful Friday day (is that redundant too?), I started off fresh out of ideas (and motivation) so I wasn’t planning on writing a blog post at all, until this was just handed to me. Which Software Blogger Do Girls Like Better? In this post, Nick Berardi takes a quick look around at the demographic information collected by Google’s new ad planner . Consider for a moment, what this data represents. It is a huge database of information on surfing habits of perhaps nearly the entire Internet, collected via huge data centers consisting of unfathomable computing power (as...
Filed under: , , ,
Posted to:

ASP.NET MVC Tip #11 – Use Standard Controller Action Names

In this tip, I recommend that you use standard names for your controller actions in order to make your code more transparent to other developers. Adopting naming conventions makes your code easier to read for other developers and your future self. Naming...( read more ) Read More...
Filed under: , ,
Posted to:

I'm with the Thirsty Developer

While in Chicago to speak at PHP | Tek , I got to do a Podcast (in a bar) with on of the The Thirsty Developers I hope you will [ CLICK HERE ] and listen ! Read More...
Posted to:
by: 
06-27-2008, 12:55 PM

ASP.NET Dynamic Data: Customizing the UI

In my last post on Dynamic Data , I showed what Dynamic Data adds to the current ASP.NET data story.  In this post I show how to customize the UI with Metadata, field templates, and page templates.  I start off by showing off the Dynamic Data Wizard . File\New WebSite Create a new connection, in this case using SqlExpress It may take a minute, but the wizard will load the database metadata.. let's select just a few tables for this demo The next step is customizing the project that gets generated.  For this demo, we will Add All. Next, we can do some further customization of the end application.. The resulting application looks great.  Notice the automatic filtering, navigation between tables, editing and validation. Custom...
Filed under:
Posted to:

The Everlasting Question - Should I choose VB.NET of C#

I got an email last night from Eduardo. Eduardo "Love's VB.NET", but is concerned about his long term career prospects because he keeps hearing about C#. The Pie Chart from the Telerik Survey suggests that C# has surpassed VB.NET as the .NET language of choice. For the record, I don't think this accurately reflects the division. I would guess that it's more like 55% VB.NET and 45% C#. People ask me all the time why I choose VB.NET instead of C# for my videos . The truthful answer is, I don't. I use VB because ScottGu asked me to use VB.NET. At first, I was a bit queased out :) - I first started programming in "C" in 1978 and C++ in abut 1988-1989. So languages of "C" flavor like Java and C# are just...

1 2 3 4 5 Next > ... Last »

Archives