Hello,
I'm stuck once again.
So my web app has a button that launches the next URL in our database. This URL could be a website, .doc, .jpg, .ppt, .pdf, anything really.
My code goes something like this:
This works just fine for webpages and images (and I think even pdf's). It does not work for anything that needs to be downloaded (such as .doc and .ppt).
Surely there's a way to do what I need?
I've found some things that talk about declaring the content type, like:
Response.Conten tType = "applicatio n/pdf"
But since I don't know what type the current URL is, I would have to do some extension grabbing and a huge switch case to cover every possible extension.
Does this make sense?
I'm stuck once again.
So my web app has a button that launches the next URL in our database. This URL could be a website, .doc, .jpg, .ppt, .pdf, anything really.
My code goes something like this:
Code:
Response.Write("<script language=javascript> {window.open('" & VarUrl & "');}</script>")
Surely there's a way to do what I need?
I've found some things that talk about declaring the content type, like:
Response.Conten tType = "applicatio n/pdf"
But since I don't know what type the current URL is, I would have to do some extension grabbing and a huge switch case to cover every possible extension.
Does this make sense?
Comment