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.

get full path from fileupload control in client side

Discussion in 'C#' started by parmod5349engg@gmail.com, Jan 11, 2010.

  1. #1
    i am not able to get full path from fileupload control in client site
    plz help me?????
    that path show in textbox in fileUpload control
     
  2. sdnsoft

    sdnsoft Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    You can't. For security purposes, the browser will never post the full file's path. But you can access it using javascript to access the value of fileupload control before post back than save it to hidden text box control and read it on server side for further processing.
     
    sdnsoft, Feb 22, 2010 IP
  3. sraghuve

    sraghuve Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi sdnsoft

    Any code snippet available for this?

    Thanks
     
    sraghuve, Oct 6, 2011 IP
  4. geekstrack

    geekstrack Well-Known Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #4
    you can have path something like this

    www. example.com/abc/xyz.doc

    but you cant get something like this

    d:/hosting.../abc/xyz.doc
     
    geekstrack, Feb 23, 2012 IP