【发布时间】:2013-08-13 16:43:10
【问题描述】:
我试图在我的 ASP.Net 应用程序的 GridView 中显示一个小的进度条。我正在尝试使用 ItemTemplate。
<ItemTemplate>
<table width="100%">
<tr>
<td style="width: 75%; background-color: red"></td>
<td style="width: 25%; background-color: green" ></td>
</tr>
</table>
</ItemTemplate>
我想根据行内某些值的计算来设置宽度百分比。
可以用 Eval 以某种方式完成吗?还是我需要在后面做一些代码?
【问题讨论】: