Razor
ループ
@for(var i = 10; i < 21; i++) { <p>Line #: @i</p> }
<ul> @foreach (var myItem in Request.ServerVariables) { <li>@myItem</li> } </ul>
- http://msdn.microsoft.com/ja-jp/asp.net/hh180191
- http://www.atmarkit.co.jp/fdotnet/aspnetmvc3/aspnetmvc3_06/aspnetmvc3_06_01.html
リファレンス
- MSDN Rendering a Form Using HTML Helpers
- http://msdn.microsoft.com/en-us/library/dd410596(v=vs.98).aspx
- w3schools.com ASP.NET Razor
- http://www.w3schools.com/aspnet/razor_intro.asp
- w3schools.com ASP.NET MVC - HTML Helpers
- http://www.w3schools.com/aspnet/mvc_htmlhelpers.asp