Silly "response.content type" question

Results 1 to 2 of 2

Thread: Silly "response.content type" question

  1. #1
    Join Date
    Dec 1969

    Default Silly "response.content type" question

    Ok, I am providing an online report for my users and also a link to download same report to excel. I simply have the same code for the report as for the "excel download" page except I insert<BR>Response.ContentType = "application/" into the page.<BR><BR>My question is this - when it downloads, the worksheet takes on the same name as the .asp page name. Ideally I would like to have it automaticaly take on the name + the date like this: "mgrreport4-3-03" where mgrreport was the name of the asp page (mgrreport.asp)<BR><BR>Is this simply too silly of a question or has anybody done this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Silly

    Look into the "Content-Disposition" Header<BR><BR>HTH.<BR>D.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts