Hey gang, just a quickie today. I have been working recently on setting up server side and client side model validation “by the book” in ASP.NET MVC 2 complete with data annotations and the first question that hit me when I was declaring attributes on my LINQ to SQL partial classes to determine model validation [...]
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 [...]
Filed in .NET
|
Also tagged
|
I just wanted to do a “refresher” post regarding ASP.NET MVC validation as many things have changed over the last couple of months and there is a lot of information out there. I wanted to aggregate my known validation options and recommend them in one tabular list. Whilst I’m scared to write “best practice” now [...]
The long anticipated ASP.NET MVC book entitled “Professional ASP.NET MVC 1.0” has just been released and available over at Amazon.com right now. Published by Wrox and content put together by some of our greatest names in the .NET community, Scott Guthrie, Rob Conery, Scott Hanselman and Phil Haack. I also published in a previous post [...]
Scott Gu has announced that Microsoft is open sourcing the ASP.NET MVC Framework to be released under the Microsoft Public License (MS-PL). Very cool. As quoted “The MS-PL contains no platform restrictions and provides broad rights to modify and redistribute the source code.”. http://tech.slashdot.org/article.pl?sid=09/04/02/1845214 I’ve linked to Slashdot.org rather than directly to Scott Gu’s post [...]
This is a quick and easy way I found to print the current version number as outlined in your AssemblyInfo.cs file for printing in an ASP.NET MVC view: [sourcecode language='html'] Replacing MyController of course with your appropriate MVC controller name. This technique may not just apply to ASP.NET MVC, I suppose if you fed the [...]
Filed in .NET
|
Also tagged
|
ASP.NET MVC 1.0 RTW (Release To Web) has now officially been released earlier today, go check the write out over at Phil’s Blog. *uninstall’s RC2 I just installed and installs RTW =:)*
Filed in .NET
|
Also tagged
|