<asp:TemplateColumn HeaderText="标题">
<ItemStyle Height="25px"></ItemStyle>
<ItemTemplate>
<asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%# String.Format("javascript:var w =window.open(\"ViewEmailFile.aspx?ID={0}&Type={1}\",null,\"width=700,height=400,scrollbars=yes\")",DataBinder.Eval(Container,"DataItem.UploadFileNum"),Request["id"].ToString()) %>'>
<%# DataBinder.Eval(Container,"DataItem.Title")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240825082459112-376424429.jpg)