<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
ShowHeader="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table class="style1">
<tr>
<td colspan="2">
<asp:LinkButton ID="LinkButton1" runat="server"
CommandArgument='<%#Eval("id") %>'
oncommand="LinkButton1_Command"><%#Eval("title") %></asp:LinkButton></td>
</tr>
<tr>
<td>
<asp:Image ID="Image1" runat="server" Height="50px" Width="50px" ImageUrl='<%#Eval("headImgUrl") %>' />
</td>
<td>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("content").ToString().Length>100?Eval("content").ToString().Substring(0,100)+"...":Eval("content") %>'></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<span style=" color:Blue;"><%#Eval("author")%></span> 发布于<span style=" color:Blue;"><%#Eval("publishedTime")%></span></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>