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

怎么每列求和啊 放在汇总得分里面 用JS也行 后台也行 求给个飞马或者思路啊~!!
<form id="form1" runat="server" align="center">
  <div>
  <table border="1" align="left" cellspacing="0" bordercolor="#196ce3" 
  rules="all" 
  style="border: 1px solid #196ce3; border-collapse: collapse; height:237px; width: 1001px;">
  <tr>
  <td colspan="5" align="center" height="60"><strong>成绩表</strong></td>
  </tr>
  <tr>
  <td rowspan="2" align="center" width="150"> <strong> 得分情况 </strong> </td>

  <td colspan="4" align="center"><strong> c程序设计 </strong></td>

  </tr>
   
  <tr >
  <td align="center" style="cursor:hand;">
<strong>简单题</strong></td>
  <td align="center" style="cursor:hand;">
  <strong>中等题</strong></td>
  <td align="center" style="cursor:hand;">
  <strong>难题</strong></td>
  <td align="center" style="cursor:hand;">
  <strong>总分</strong></td>
  </tr>
   
   
  <asp:Repeater ID="Repeater4" runat="server" 
  onitemdatabound="Repeater4_ItemDataBound" >
  <ItemTemplate>
  <tr>
  <td width="150" align="center" height="30"><%# Eval("chapter").ToString() %></td>
  <asp:Repeater ID="Repeater3" runat="server" >
  <ItemTemplate>
   
  <td width="50" align="center"><strong> <%# Eval("e_score").ToString() %></strong></td>
  <td width="50" align="center"><strong> <%# Eval("m_score").ToString()%></strong></td>
  <td width="50" align="center"><strong> <%# Eval("d_score").ToString()%></strong></td>
  <td width="50" align="center"><strong> <%# Eval("total_score").ToString()%></strong></td>
   
  </ItemTemplate>
  </asp:Repeater>
  </tr>
  </ItemTemplate>
  </asp:Repeater>
   
  <tr>
  <td align="center"><strong>汇总得分</strong></td>
  <td align="center"><strong> <%# Eval("?").ToString() %> </strong></td>
  <td align="center"><strong> <%# Eval("?").ToString() %> </strong></td>
  <td align="center"><strong> <%# Eval("?").ToString() %> </strong></td>
  <td align="c