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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window Title for application\pdf ContentType

Status
Not open for further replies.

AWEinCA

Programmer
Oct 18, 2000
35
US
I am sending a pdf to the client's browser.

I am unable to change the title that shows in the browser window. It shows the URL of the PDF. I would like to change the title of the pdf window.

Here is what I am doing:
{
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.Expires = -1;
Response.ContentType = "application/pdf";
Response.AppendHeader("Title","Welcome");
Response.WriteFile(destinationFile); //the pdf file
Response.Flush();
Response.Close();
}


I have tried to AppendHeader but that doesn't work.

Any help or suggestions would be greatly appreciated!

Thanks in advance,
Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top