<asp:TemplateField ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:ImageButton ID="ibtDownloadAttachment" runat="server" ImageUrl="~/images/download.png" OnClientClick='<%# Eval("AttachmentURL","javascript:window.open(\"{0}\")")%>' /> </ItemTemplate> </asp:TemplateField>