Blush











{October 26, 2008}   Release 1.2

With the release of ASP MVC Beta I decided to update the code base as this has introduced a few breaking changes.

Issues

1. New assemblies needed referencing and old assemblies including GAC copies needed removing . I found this blog to be very helpful : http://www.adamjcooper.com/blog/post/Migrating-to-ASPNET-MVC-Beta-from-Preview-5.aspx

I also as recommended in the post above set my assemblies to copy local which took away a step I normally have to perform in my deployment.

2. Strongly typed ActionLink stopped working so all of a sudden you could not do this :

<%=Html.ActionLink<CardsController>( t => t.ViewCard(c.Name), "[ View Card ]")%>

It turns out that this functionality has been moved to the futures assembly and you need to download the zip and reference it and then hay presto you get this back. The zip can be found here :

http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=18459

3. The methods for Html.Textbox seem to have changed and i had to modify my code so that when i didn’t have a value to write out i had to include null as my second param like so :

  <%
        var formattingObjects = new Dictionary<string, object> 
{ { "border", 0 }, { "MaxLength", "300" }, { "class", "CreateCardCardName" } };
    %>

    <%=Html.TextBox("cardName",null, formattingObjects)%>

 

But apart form these few gotcha’s it seemed to be quite painless.

CSS still a creating problems for me but im resisting dealing with it as i want to get features hammered out and im hoping i can get a web designer to join me in this little project.

Note:

Another fantastic resource that saves me from having to list a load of links , is this blog entry i have found it a stunning resource: http://weblogs.asp.net/stephenwalther/archive/2008/10/17/a-guide-to-learning-asp-net-mvc-beta-1.aspx

XXMEXX



Leave a Reply

et cetera