locked
how to access the physical path in anchor tag in html RRS feed

  • Question

  • User-1722422105 posted

    Hi all

    how to  access the physical path in anchor tag

    given below

    <input type="text" class="form-control" id="lbl1" readonly="readonly" />
    <a href="~/Uploads/53/Uploaded.jpg" onclick="func()" ; return false;">Open file</a>

    here lbl1 text value=53 which is dynamic

    E:\SS\WebApplication1\WebApplication1\Uploads\53\Uploaded.jpg

    Thursday, June 28, 2018 3:04 AM

All replies

  • User283571144 posted

    Hi sidu,

    how to access the physical path in anchor tag in html

    As far as I know, if you set the physical path in anchor tag in html, it will reder the ref to belwo format.

    If you click this a tag, it will locate the D drive on the client pc, not the server's.

    So we couldn't use the physical path in the a tag.

    We could only use virtual path or some url address to access the server's file like below:

    http:\\localhost\site\img\mypicture.jpg

    Best Regards,

    Brando

    Friday, June 29, 2018 2:44 AM