在MVC中把一个表中的数据显示出来
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<List<ModelNotice>>" %>
<%@ Import Namespace="SDS.Model"%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableList">
<%if (Model != null)
{
for (int i = 0; i < Model.Count; i++)
{
%>
<tr class="list">
<td width="5%" align="center">
复选框
<input name="ch" type="checkbox" value="<%=Model[i]. f_notice_id%>" />
</td>
标题
<td width="20%" align="center">
<%=Html.Encode(Model[i]. f_notice_title)%>
<%=Html.HiddenFor(p=>Model[i]. f_notice_title) %>
</td>
发件人
<td width="20%" align="center">
<%=Html.Encode(Model[i]. f_notice_send_su)%>
<%=Html.HiddenFor(p=>Model[i]. f_notice_send_su) %>
</td>
接收时间
<td width="10%" align="center">
<%=Html.Encode(Model[i]. f_notice_time) %>
<%=Html.HiddenFor(p => Model[i]. f_notice_id)%>
</td>
删除
<td width="10%" align="center">
<%if (Model[i].AuditId==0)
{%>
<%=Html.ActionLink("删除", null, null, new {onclick="ShowEdit(this,"+Model[i]. f_notice_id +")" })%>
<%}
else
{%>
删除
<% } %>
</td>
</tr>
<%}%>
<% } %>
</table>
我感觉这代码没有错呀,但是为什么不出来呢