<asp:TemplateField HeaderText=稿件>
<EditItemTemplate>
<asp:TextBox ID=TextBox runat=server Text=<%# Eval([sServerVirtualityPathHttpRemotesOppositePathsSmallPhotoFileName]) %>></asp:TextBox>
</EditItemTemplate>
<ItemStyle FontSize=pt Width=% HorizontalAlign=Center VerticalAlign=Middle />
<HeaderStyle FontSize=pt Width=% HorizontalAlign=Center VerticalAlign=Middle />
<ItemTemplate>
<table >
<tr>
<td >
<a <%# stringFormat( PhotoInformationaspx?ImageID={}&sType={}&sImage= DataBinderEval(ContainerDataItem sGuidID)DataBinderEval(ContainerDataItem sGuidIDtBaseDraftType)) %>
target=_blank>
<asp:Image ID=Image runat=server ImageUrl=<%# stringFormat({}/{}/small/{}DataBinderEval(ContainerDataItem sServerVirtualityPathHttpRemote)DataBinderEval(ContainerDataItem sOppositePath)DataBinderEval(ContainerDataItem sSmallPhotoFileName)) %>
Height=px Width=px /><asp:HyperLink ID=HyperLink_txt runat=server Visible=False
Target=_blank>HyperLink</asp:HyperLink></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
From:http://tw.wingwit.com/Article/program/net/201311/13735.html