Argh! This is why I avoid DataGridViews like the plague. I was working today in a Win Forms app attempting to perform a function if all checkboxes in my DataGridView column had been set to “true” (aka. the user has them all selected). After much anguish and what I’m sure was a bug with the [...]
Some of you might remember that I blogged about the Windows 7 managed code API’s accessible via the Windows API Code Pack a little while ago, well I just would like to clarify that point and say the Windows API Code Pack is not just for Windows 7 developers and provides many exciting features never [...]
Check it out; if you’re not familiar with view engines, it is simply a different approach and syntax used in creating an ASP.NET MVC view. There are many, others available, but NDjango was just recently released and there is a great video below which walks you through a first usage and the syntax, plus it [...]
Just so others don’t tear their hair out, it seems the xVal client side validation call Html.ClientSideValidation<TModel> converts (all?) non-A-Z characters to an underscore, I knew dots needed to be replaced for underscore, but it seems square brackets need this as well. So: <%= this.TextBox(“Supplier.SupplierAddresses[" + Model.CurrentRowIndex + "].Address.Postcode”).Value(Model.SupplierAddress.Address.Postcode).Class(“postcode”).MaxLength(4)%> <%= Html.ValidationMessage(“Supplier.SupplierAddresses[" + Model.CurrentRowIndex + "].Address.Postcode”)%> [...]
Hi guys, I posted this question on stackoverflow.com today, feel free to join in and post if you have any thoughts on the topic. I am interested to know what you guys feel should be deemed “correct behaviour” in terms of the UpdateModel method in ASP.NET MVC. The reason I ask here is perhaps if [...]
Have you found yourself using ASP.NET MVC quite merrily building views and controllers and master/detail forms with 1-1 objects from your database to your view and now you’ve hit a hairy case which has ruined everything when you have a child and/or child collection object you also need to update on the form (or multiple [...]
Also filed in
|
Tagged mvc
|
After my last post regarding the strange NotSupportedException I was receiving on my generic repository, I thought it might be fitting to post what my LINQ to SQL generic repository looks like and what it’s all about. WHAT’S A REPOSITORY? A repository defines methods which allow you to access data from your data model, typically [...]
I was working with LINQ to SQL today to bind some data to a drop down list in ASP.NET MVC, when I encountered this strange exception I’ve never seen before: System.NotSupportedException: The mapping of interface member IDbTable.StatusID is not supported. I figured I knew what triggered the problem, and that being due to the new [...]
Also filed in
|
|
If you aren’t up with the know, T4 Templates or the Text Template Transformation Toolkit is a Microsoft template-driven code generation toolkit baked right into Visual Studio 2008 (and available in Visual Studio 2005 as an additional download) which allows you to do some pretty cool stuff in the way of code generation — that [...]
Also filed in
|
Tagged T4
|
UPDATE 6/Jul/2011: This post is now depreciated. Now that ASP.NET MVC 3 supports Unobtrusive AJAX & Validation with the jQuery Validation plugin with support for both EF 3.5/4.0+ and Linq To Sql OUT OF THE BOX! I wouldn’t bother with anything else! Great validation is now built-in. For a full tutorial of implementing client and [...]