Alex Rivera | Logout

Build does not catch errors in the View in asp.net mvc

Asked 2008-12-07T16:23:08.863
9

Why don't we get compile errors on inline code errors in asp.net mvc views f.eks

<h1><%= ViewData.Model.Title.Tostrig() %></h1>

The code above will build just fine. Wrong spelling in webform controls will give you an error so I can't see why this isn't supported in asp.net mvc

EDIT: Luckily there seem to be a fix included in the first RC for asp.net mvc http://weblogs.asp.net/scottgu/archive/2008/12/19/asp-net-mvc-design-gallery-and-upcoming-view-improvements-with-the-asp-net-mvc-release-candidate.aspx

Edit
Report

1 Answer

0
answered 2008-12-07T17:47:18.833

Your Answer