Skip to content

Tag Archives: mvc

Unexpected Behaviour with ASP.NET MVC SelectList SelectedValue

17-Mar-09

Well I’ll be darned. I just spent half an hour today debugging what I thought was a strange oddity today with an ASP.NET MVC Html.DropDownList(), specifically within it’s SelectList element on a simple “add / edit” detail screen on an ASP.NET MVC web form. I had this code: [sourcecode language='html'] Basically stating that when launching [...]

Free ASP.NET MVC eBook Tutorial from MVC Team!

12-Mar-09

Hey guys, In case you missed the announcement, Scott Guthrie, Rob Conery, Scott Hanselman and Phil Haack have teamed up on working on a definitive, killer resource guide to ASP.NET MVC titled “Professional ASP.NET MVC 1.0” to be released on Amazon shortly. But furthermore to the exciting news; Scott Guthrie (corporate VP for Microsoft’s Developer [...]

Two Easy Methods for Confirm Dialog with ActionLink

10-Mar-09

Hi guys, today I would like to present two easy ways in which to present a confirm dialog to the user (such as “Are you sure you wish to delete this item?”) from a button or link click before performing a particular action on your ASP.NET MVC website.  If you are already somewhat familiar with [...]

Using MetadataType attribute with ASP.NET MVC xVal Validation Framework

04-Mar-09

Well some updates to my old article on ASP.NET MVC Validation today. The bad news, I had to drop “Solution B” which was to allow you to define validation rules on a metadata type “buddy” class of your model, in cases where you may be using something like LINQ2SQL and are unable to make changes [...]

ASP.NET MVC Release Candidate 2

04-Mar-09

ASP.NET MVC RC2 has been released today and contains the following notable changes: Setup will now require .NET 3.5 SP1. Bin deployment to 3.5 host without SP1 still possible. New server-only install mode. Be sure to head over to Steve Sanderson’s blog for more info and see the release notes for other changes. It was [...]

Learn ASP.NET MVC (Getting Started & Digging Deeper)

03-Mar-09

I have a few ASP.NET MVC links I’ve had for a bit for when people ask me where they should start from in learning ASP.NET MVC, so I thought today it would be good to get them out there and get them posted.  There is not a lot here, but just some hand-picked ones I’ve [...]

ASP.NET MVC Release Candidate Now Available

28-Jan-09

The Release Candidate of ASP.NET MVC 1.0 has just been released, you can read about it on these two important blogs: http://haacked.com/archive/2009/01/27/aspnetmvc-release-candidate.aspx http://weblogs.asp.net/scottgu/archive/2009/01/27/asp-net-mvc-1-0-release-candidate-now-available.aspx Release Notes: http://go.microsoft.com/fwlink/?LinkID=137661&clcid=0×409 Horray! Lots of delicious new stuff.

Submitting an AJAX Form with ASP.NET MVC + jQuery

27-Jan-09

I don’t have a lot of time to blog about this, and it is something I wanted to blog about weeks ago, so while I have the links on hand, here are the links I used to move away from ASP.NET MVC’s built in Ajax methods utilising the Microsoft Ajax JavaScript library (you know, your [...]

ASP.NET MVC Validation – The Definitive Guide (in my eyes)

19-Jan-09

Please see my newer article here.

Sweet lambda trick to append to MVC SelectList()

09-Jan-09

Hey Ya’ll, Well I was thinking of an ill-tricky way to append a string to the beginning of each list item in ASP.NET MVC’s SelectList collection, after thinking: new SelectList(ViewData.Model.Formats.ForEach(x => x.Name = index + ” – ” + x.Name), “ID”, “Name”); pausing (doh! – and not to mention not knowing how I would have [...]

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...