Letting User Download File

Results 1 to 2 of 2

Thread: Letting User Download File

  1. #1
    Join Date
    Dec 1969

    Default Letting User Download File

    I have a user login to my ASP .Net site (which is under the root dir), then while they are there a Word document is created, and is placed in a subdirectory called doc. I want the user to be able to download this file. I placed the following code in my page:<BR><BR>&#060;a href=&#060;%= "c:\inetpub\wwwroot\doc\" + (Session["proposalIDValue"]).ToString().Trim() + "cummulative.doc" %&#062;&#062;<BR> MS Word - Cummulative Budget Document&#060;/a&#062;<BR><BR>It shows up, but nothing happens when you click it. If I am on my local computer and I right click an Save As it downloads, but if on another remote computer, I can&#039;t click or Save As. Any ideas?<BR><BR>Thanks.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Letting User Download File

    If you set up docs as a virtual directory you should be able to link directly to the file... <BR><BR>www.mysite.com/docs/&#060;%=(Session["proposalIDValue"]).ToString().Trim() + "cummulative.doc" %&#062;

Posting Permissions

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