日期:2014-05-17  浏览次数:20330 次

asp.net的程序新手啊 求解
<table style="width: 200px">
  <%if (ClassInfoInfo != null)
  { foreach (var itemde in ClassInfoInfo)
 { %>
 <tr valign="top"> <td align="left" valign="top" style="width: 150px">
 <%=itemde.C_Name%>
 </td>
 <td valign="top" class="banji" align="left" style="cursor: pointer">
<img src="../images/del.gif" title="删除" alt="<%=itemde.C_Id%>" />
</td>
</tr>
<% }
 }%>
<tr>
<td colspan="2">
</td>
</tr>
</table>

其中<%=..%>是属于什么方法,应该怎么描述,论文急用啊

------解决方案--------------------
探讨
<table style="width: 200px">
<%if (ClassInfoInfo != null)
{ foreach (var itemde in ClassInfoInfo)
{ %>
<tr valign="top"> <td align="left" valign="top" style="width: 150px">
<%=itemde.C_Nam……

------解决方案--------------------
<%=你要输出的值%>
------解决方案--------------------
探讨
<table style="width: 200px">
<%if (ClassInfoInfo != null)
{ foreach (var itemde in ClassInfoInfo)
{ %>
<tr valign="top"> <td align="left" valign="top" style="width: 150px">
<%=itemde.C_Nam……

------解决方案--------------------
<%=你要输出的值(数据库中的表字段)%>
------解决方案--------------------
cs文件里面的public类型的变量赋值以后,可以直接显示在aspx文件上
------解决方案--------------------
引用cs文件中的变量也可以
<%=变量名 %>