@using and <%using difference

Ethigeirribre

New Member
I'm a fan of Razor & Knockout mvc & MVC,unfortunately, we just cannot use plain MVC on our CMS(KENTICO) Solution, so I had to create a custom MVC with ASP .NET with classic ASPX.by following a simple tutorial: http://knockoutmvc.com/BetterListjust a question, is this Razor syntax:\[code\]@using (var item = ko.Foreach(x => x.AllItems)){ <li> @item.Html.Span(x => x.FullName) </li>}\[/code\]equivalent to this ASPX syntax:\[code\]<%using (var item = ko.Foreach(x => x.AllItems)) { %> <li> <%= item.Html.Span(x => x.FullName) %> </li> <%} %>\[/code\]?Thanks guys
 
Back
Top