Links for week of 01/25/2010

Posted on Monday, 25 January 2010 09:31 PM

It'll be a long list of reading materials for this week :)

Use C# 4.0 dynamic to drastically simplify your private reflection code

Why ASP.NET MVC 2 Is Broken

How to Change .NET Configuration Files at Runtime (including for WCF)

Creating a Simple IoC Container

Screencast: Visual Studio 2010 – New debugging experience

Input Validation vs. Model Validation in ASP.NET MVC

Service Pack 2 for Telerik Extensions for ASP.NET MVC released

Just Released System.Web.MVC.Extensibility Beta

Building Applications for Windows Mobile 6.5

Create First WPF Application

Create First Silverlight Application

My picture of an MVC-WebForms marriage

Drop-down Lists and ASP.NET MVC

Extract styles in Expression Blend

Silverlight and ASP.NET MVC Don’t Serve the Same Master

Silverlight: Themes

Click and Retrieve the Value of a GridView Cell using jQuery

Using Custom Security Attributes in ASP.NET MVC

Implementing a jQuery Modal Window in ASP.NET

Large or asynchronous file uploads in ASP.NET MVC

My Favorite Helpers For ASP.NET MVC

WPF for the Web guy…a story of pain, despair and learning

Add a Flickr widget to any web site with jQuery

Unwinding the page lifecycle events

ASP.NET: Aligning Text

Server-side resizing with WPF: now with JPG

What’s the difference between a destructor and a finalizer?

How can I sort data virtualized items in WPF?

When will WebForm vs MVC become like ListView vs Repeater?

Using CDN Hosted jQuery with a Local Fall-back Copy

An Overview of MVC4WPF - Part 3 of 3

Working with the WPF VSM in an MVVM friendly manner

An Excel file Viewer in Silverlight 4

Career Growth

Keeping Your ASP.NET Session Alive Using jQuery

The New Hotness: Using CSS3 Visual Effects

ASP.NET: GridView and Business Objects

IIS vs. ASP.NET URL Rewriting

WCF/IIS service error: HTTP Error 404.3 - Not Found

Posted on Friday, 22 January 2010 12:50 AM

I've ran into a problem today browsing to a WCF service running inside IIS, the error is:

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. if the page is a script, add a handler. If the file should be downloaded, add a MIME map ...

After digging around, it seems like servicemodelreg needs to be registered on the machine. To enable it:

  1. Run Visual Studio 2008 Command Prompt as Administrator.
  2. Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
  3. Run this command: servicemodelreg -i
You should be able to browse to the WCF service.

OrderBy - ThenBy

Posted on Wednesday, 20 January 2010 10:07 PM

I've just notice that my blog "archives" lists month/year "1/2010" at the bottom instead of on top of year 2009, looking at the code, this is what I have:

(from b in Blogs
group b by new
{
	month = b.BlogPostedDate.Month,
	year = b.BlogPostedDate.Year
} into d

orderby d.Key.year descending
orderby d.Key.month descending
select new BlogArchive
{
	MonthYear = string.Format("{0}/{1}",
	d.Key.month, d.Key.year),
	Count = d.Count(), month = d.Key.month, year = d.Key.year });

I thought that by ordering by the year, then month, it would give me the desired result, however, it doesn't. To get the correct result, I need to use the "OrderBy..." and then follow with a "ThenBy...", as such:

var archives = (from b in dc.Blogs
		group b by new
			{
				month = b.BlogPostedDate.Month,
				year = b.BlogPostedDate.Year
			} into d
			select new BlogArchive
				{
					MonthYear = string.Format("{0}/{1}", d.Key.month, d.Key.year),
					Count = d.Count(),
					month = d.Key.month,
					year = d.Key.year
			}).OrderByDescending(b => b.year).ThenByDescending(m => m.month)
That should do it. My "archives" displays the correct result now.

Links for week of 01/18/2010

Posted on Monday, 18 January 2010 11:04 PM

Website User Authentication - ASP.NET 4 Web Applications

Take your MVC User Controls to the next level

DotNet JQuery (DNJ) : new features in version 0.4.0

jQuery 1.4 Released

Required Field Highlighting in Dynamic Data Field Templates

Adding Multiple Nested Data in ASP.NET MVC Application

A More Scalable ScrewTurn Wiki Membership Model

LINQ to SQL tips and tricks #3

Using ASP.NET 3.5's ListView and DataPager Controls: The Ultimate DataPager Interface

ASP.NET 3.5 Dynamic Data: FilterRepeaters and Dynamic Linq Query Generation

Free Developer Training for WPF 4

Silverlight: SketchFlow

How you can force the Ajax Script Loader to use jQuery 1.4

ASP.NET MVC 2: Model Validation

Accessing Webservice by using Sys.Net.WebRequest

Restricted Pan and Zoom in WPF

Why choose between Ajax or MVC ? Together they KISS so sweet

Populating Hierarchical Data Using Model Binders in ASP.NET MVC Application

Editable Routes

Getting Started with WCF RIA Services

UML Modeling and Code Generation in Visual Studio 2010

Links for week of 01/11/2010

Posted on Friday, 15 January 2010 07:36 PM

I'm now back to my "normal" routine :) Here are some of the links that I found interesting to read.

ASP.NET MVC 2

What’s After Unit Testing?

Getting Started with WCF WebHttp Services in .NET 4

[Video] Spark View Engine Part 3

TDD: 4 questions that will help you create the simplest thing that could possibly work

How to Create and Activate a New Windows Azure and SQL Azure Account or Upgrade an Existing Account

ASP.NET 4 SEO Improvements (VS 2010 and .NET 4.0 Series)

Authorizing access via attributes in ASP.NET MVC without magic strings

Fluent Silverlight – Implementing a fluent API

Death to confirmation dialogs with jquery.undoable

jQuery UI 1.8a2

Dynamic types and ASP.NET MVC

ASP.NET MVC 2: Strongly Typed Html Helpers

Ordering fields in ASP.NET MVC 2 templated helpers

Using Model View Presenter in WPF

Mobile Device Detection and Redirection Using ASP.NET/MVC

Silverlight – About validation when binding to custom forms – Part 2 using Silverlight 4

Validate a Windows Username and Password against Active Directory

The Binding you wanted from day one in WPF

Silverlight - Using RIA Services Programmatically

Building A Color Picker Using ASP.NET MVC And jQuery

jQuery and ASP.NET UpdatePanel

The ultimate hack for Silverlight in Blend

Building A Ratings Widget With ASP.NET MVC And jQuery

Creating ASP.NET MVC Helpers

ReSharper 5.0 has awesome ASP.NET MVC support

1   2   >