Asp.net mvc MVC数据绑定错误

Asp.net mvc MVC数据绑定错误,asp.net-mvc,asp.net-mvc-2,c#-3.0,Asp.net Mvc,Asp.net Mvc 2,C# 3.0,我试图使用LINQ to SQL填充表,我使用以下代码部分 <h2>Index <table class="grid"> <tr> <th>u_name</th> <th>u_id</th> <th>u_sex</th> <th>u_job_tittle</th> <th>

我试图使用LINQ to SQL填充表,我使用以下代码部分

    <h2>Index
    <table class="grid">
   <tr>
      <th>u_name</th>
      <th>u_id</th>
      <th>u_sex</th>
      <th>u_job_tittle</th>
      <th></th>
   </tr>
   <% foreach (var item in Model) { %>

   <tr>
      <td class="left"><%item.u_name ; %></td>
      <td class="left"><% item.u_id; %></td>
      <td class="left"><% item.u_sex; %></td>
      <td class="left"><% item.u_job_tittle ;%></td>
   </tr>

<% } %>

</table>
    </h2>

</asp:Content>

索引
你的名字
身份证
性
你的工作
问题是运行时错误出现如下

只能将赋值、调用、递增、递减和新对象表达式用作语句


如果您试图将值写入需要与
=
一起使用的页面,有没有解决这个问题的方法

<td class="left"><%=item.u_name %></td>