1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP.net: How to use "LinkButton" to link the uploaded file in different directory

Discussion in 'C#' started by alanX, Feb 3, 2007.

  1. #1
    Hi All,
    I have a question on the syntax of LinkButton, like that:

    I used the upload function as follow for uploading the file into directory called "UpLoadFile" on the IIS server:
    then use the DataGrid to download the uploaded file on the IIS server as folow:
    I know the format like:
    only can download the file in the same directory, but right now i want the dwonload the file in the directory "UploadFile".

    How to achieve that! please help me!
     
    alanX, Feb 3, 2007 IP
  2. alanX

    alanX Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I tried it, but fail::confused:

    Anybody help!
     
    alanX, Feb 3, 2007 IP
  3. TasteOfPower

    TasteOfPower Peon

    Messages:
    572
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Where is your code to download the file?
     
    TasteOfPower, Feb 4, 2007 IP
  4. alanX

    alanX Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    here is a part of code to download the uploaded file !
    The procedure are like that:
    (1) Use the "FileUpload" object to upload the file on the directory called "UploadFile". (using IIs server) (Actually, i do not want to mix up the programming scripts and uploaded files)
    (2) store the file name into the database
    (3) use the datagrid to bind the data(using Hyperlink to link up the file) as follow:
    But the problem is that the code above can only link up the file in the same directory, but now all the upload files are in the another direcroty called" UploadFile".

    How to use the hyperlink to link up the files in "UploadFile" directory?
     
    alanX, Feb 5, 2007 IP
  5. TasteOfPower

    TasteOfPower Peon

    Messages:
    572
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I dont get it. I need to see your actual code.

    What do you mean.......use a hyperlink to link up the files in the UploadFile directory?
     
    TasteOfPower, Feb 5, 2007 IP