Last post Jun 29, 2018 02:44 AM by Brando ZWZ
Jun 28, 2018 03:04 AM|sidu|LINK
how to access the physical path in anchor tag
<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
Jun 29, 2018 02:44 AM|Brando ZWZ|LINK
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: