“/”应用程序中的服务器错误。

编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0103: The name 'item' does not exist in the current context

源错误:


行 312:                <%foreach(var item in hotPhoto%>
行 313:                    <li>
行 314:                        @if (hotPhoto.IndexOf(item)==0){
行 315:                        <label class="hot">@(hotPhoto.IndexOf(item)+1)</label>
行 316:                        }else{

源文件: f:\usr\localuser\qxw1539250143\Web\main\photo_show.cshtml    行: 314







版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34209