Weird: just had to knock something like this up yesterday:
Use an
HtmlAnchor
control as opposed to a
HyperLink
control:
link = new HtmlAnchor();
link.HRef = ResolveUrl(path + "\\" + file.Name);
link.Target = "_blank";
link.InnerText = file.Name;
where path might be like:
@"~\Reports\Documents";