无法获得图像(ASP.NET)



我有查看需要从db中获取pic的src值的位置。

这是查看代码

   <tbody id="findings" style="overflow-y: scroll;">
                @foreach (var item in Model)
                {
                    <tr>
                        <td class="point">
                            @(rowNo += 1)
                        </td>
                        <td style="display:none" id="patientId" class="title">
                            @Html.DisplayFor(modelItem => item.Patient_id)
                        </td>
                        <td class="title">
                            @Html.DisplayFor(modelItem => item.Patient.Date_of_Birthday)
                        </td>
                        <td id="nameVal" class="title">
                            @Html.DisplayFor(modelItem => item.Patient.Name)
                        </td>
                        <td class="title">
                            @Html.DisplayFor(modelItem => item.Start_appointment)
                        </td>
                        <td class="title">
                            <img src="@item.Calculation.CalculationStatus" />
                        </td>
                        <td class="title"></td>
                        <td class="title"></td>
                    </tr>
                 }
            </tbody>

但是当我运行时,我有错误

无法加载资源:服务器以404的状态响应 (找不到)

在页面源我有此<td class="title"> <img src="~/images/status_icons/openedCalculation.png" /> </td>

我不明白为什么不显示页面。

问题在~符号处。没有它,一切都将工作。

最新更新