T
tma
I'm trying to add anchors in code and I need the link to force a download of
the .pdf rather than open a new window or worse, open the file in the
current client browser window. Is there something I can change about the
anchor itself to force this behavior? I did not have any success with the
"content-disposition" articles suggested.
Here is my very normal anchor code:
a = New HtmlAnchor
a.HRef = "http://www.someURL/Registration.pdf"
a.InnerText = "Print Application"
a.Target = "_blank"
the .pdf rather than open a new window or worse, open the file in the
current client browser window. Is there something I can change about the
anchor itself to force this behavior? I did not have any success with the
"content-disposition" articles suggested.
Here is my very normal anchor code:
a = New HtmlAnchor
a.HRef = "http://www.someURL/Registration.pdf"
a.InnerText = "Print Application"
a.Target = "_blank"