I'm getting started with .NET MVC. I have experience with C# and I'm getting confortable with controllers and models. I'm however not very knowledgeable when it comes to writing views. I'm struggling to find a good reference on the matter. Available code samples are usually simple and oriented towards demonstrating the overall MVC model. I find available webforms references confusing because of the mixture of event driven controls.
Where can I find a good reference on writing views specifically for .NET MVC? I'm looking for either books, online references or even just really complete sample code.
PS I'm assuming that using the default microsoft aspx/ascx <% %> style syntax is the way to go (at least to start). Please let me know if there's important alternatives I need to consider.
You should acquaint yourself with the NerdDinner HTML tutorial. It gives you an excellent overview of the entire process of building an app on MVC, including some rather complex scenarios.
The sample is an excerpt from a book called Professional ASP.NET MVC 1.0; I'll recommend that too, and it's also available in Kindle format if you want. The book contains quite a few interesting chapters on a multitude of MVC subjects, also about views.
The <% %> syntax is what you want, although alternative view engines exist as already mentioned in another answer. But until you're well familiar with ASP.NET MVC, I would recommend sticking with the basic view engine - it's easiest to find help and samples for that.
I suggest you start with the above references and then ask more specific questions on the parts you don't feel comfortable with. Hope this helps :-)