I have a hyperlink to view my attachment. My attachment is on the server and your wallet is written to the database. I am wanting at the time that the person click on Hyerlink open a new tab and present the attachment.
Follow my code
function popuplista(c) {
popupwide("'"+ c +"'");
}
<asp:HyperLink ID="lblMensagemAnexo" runat="server" NavigateUrl='<%# Eval("Anexo") %>'
Text="Clique aqui para ver o anexo" Width="250px" Visible="false" Target="_blank"></asp:HyperLink>
lblMensagemAnexo.NavigateUrl = "javascript:popuplista('" + dt.Rows[0]["Anexo"].ToString() + "');";