Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a word document

Status
Not open for further replies.

uzzie123

Technical User
Mar 7, 2007
21
CA
Hi,

How do you create a link on a asp page that opens a word document?
 
set the response.contenttype to application/msword on top of your asp page...something like this:

<%
Response.ContentType = “application/vnd.ms-word”
%>

-DNG
 
Well,

I basically want a link in a page that will open a word document. Is that possible?

thx
 
Yes, you can just do

Code:
Response.Write("<a href='filename.doc'>Click here to open WORD document</a>");

This will open a word document in word. It will ask you though before opening whether you want to open it or save it.


[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top