Below you will find pages that utilize the taxonomy term “Razor”

Razor Foreach Loop with Index

I recently needed to get the index of an item in a razor foreach loop. This simple solution posted as a comment by Ian Mercer on Phil Haack’s blog did the trick easily.


A month ago, MVC 3 was released. Given it’s maturity level and features, I have decided it’s time to start building web apps with it instead of web forms.