Recent Posts

8
Comments

Certificate error with Web Platform Installer by findleyd

A friend of mine was having an issue getting the Web Platform Installer to work on his Windows Server 2008 R2 box. He said there was some sort of cert error and asked me to try https://go.microsoft.com/fwlink/?LinkId=158722 on my local machine to see...
43
Comments

ASP.NET MVC – Multiple buttons in the same form by findleyd

I keep seeing this question in forums and on twitter so I thought I’d post all the various ways you can handle this and what the pros and cons are. The Scenario Imagine you have a user signup form. There are several textbox fields for entering the new...
Filed under: ,
0
Comments

ASP.NET MVC ModelState should work like TempData by findleyd

I prefer to have the actions that forms post to just process the posted data and then redirect to a different action for viewing the results. So in order to pass validation errors back to the form action I need ModelState to work like TempData does. In...
Filed under: ,

Comments

Interesting finds 3/13/2009 by findleyd

As soon as I get some time I need to look at these a little closer: http://www.codeplex.com/FluentValidation http://www.jetbrains.com/teamcity/

Comments

Merry Christmas Indeed! by findleyd

Janice went all out this year and got me an Ibanez JS1000 (Joe Satriani series) guitar, a Line 6 POD X3 Live effects board and a pair of Roland CM-30 amplified monitors. My fingers are all tore up now since I've been out of practice for some time now...
Filed under: , ,
27
Comments

LINQ - The Uber FindControl by findleyd

With a simple extension method to ControlCollection to flatten the control tree you can use LINQ to query the control tree: public static class PageExtensions { public static IEnumerable<Control> All( this ControlCollection controls) { foreach ...
10
Comments

A Quick Fix for the Validator SetFocusOnError Bug by findleyd

The ASP.NET validators have this nice property called "SetFocusOnError" that is supposed to set the focus to the first control that failed validation. This all works great until your validator control is inside a naming container. I ran into this recently...
Filed under: ,
4
Comments

VS.NET Macro To Group and Sort Your Using Statements by findleyd

I try to follow a coding standard for organizing my using statements. System.* goes at the top and then other namespaces grouped together like this: using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System...
Filed under: ,
4
Comments

Fix ReturnUrl When Sharing Forms Authentication with Multiple Web Applications by findleyd

Scenario: You have two web applications www.mydomain.com and login.mydomain.com. The login site provides a centralized login application and www contains any number of web applications that should use the auth ticket issued by the login site. The auth...
Filed under:
0
Comments

A VS.NET Macro to Generate Machine Keys. by findleyd

I needed to create a new machine key for an asp.net site. I found a couple of command line utils out on the web that would create a new key but I thought it would be easier to just have it avail in VS.NET. So, I threw together this little macro that will...
Filed under: , ,
More Posts Next page »