This project is read-only.

Client-Side Validation

Jan 23, 2011 at 2:42 AM

My Development environment:

  • VS2010 Ultimate
  • Microsoft SQL Server 2008 R2
  • MVC Music Store Tutorial v2.0


Issue found while Testing the Client-Side Validation pg. 91


I was having no issues with this tutorial until testing the client-side validation. For some reason the validation rules worked but the red css coloring didn’t work. I finally found an issue with the MvcMusicStore\MvcMusicStore\Content\themes\base\jquery-ui.css file.


When I tried to open the file in VS, I received this pop-up:



Inconsistent Line Endings

The line endings in the following file are not consistent. Do you want to normalize the line endings?



I clicked yes, and now everything works as designed. I hope this helps someone else.



BTW, a BIG thx to all that brought us MVC 3, !




Jan 27, 2011 at 1:07 AM

Brian - You shouldn't have a /Content/themes directory. Did you select the Empty template when you created the ASP.NET MVC 3 application?