|
发表于 2020-4-1 23:45:01
|
显示全部楼层
HTML,gridview中的ItemTemplate代码
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr align="left" style="font-weight:normal;font-size:9pt" valign="middle">
<td width="4%" align="center">
<input type="checkbox" id="selectedchkbox" value='<%#DataBinder.Eval(Container.DataItem,"InfoID") %>' runat="server" /></td>
<td width="4%" align="center> </td>
<td align="left" valign="middle" width="35%">
<a href="LookMail.aspx?MailId=<%#DataBinder.Eval(Container.DataItem,"MailID")%>" target="_self"><font color="#9933ff"><%DataBinder.Eval(Container.DataItem, "Subject")%></font></a>
</td>
<td align="center" valign="middle" width="15%">
<%#DataBinder.Eval(Container.DataItem,"UserID") %>
</td>
<td align="center" valign="middle" width="15%">
<%=ReceiversNamelbstring%>
</td>
<td align="center" valign="middle" width="15%">
<%#DataBinder.Eval(Container.DataItem, "SendDate", "{0:yyyy-MM-dd HH:mm}")%>
</td>
<td align="center" valign="middle" width="12%">
</td>
</tr>
</table>
</ItemTemplate> |
|