|
ItemTemplate code in HTML, gridview
<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> |
|