Link to home
Start Free TrialLog in
Avatar of gpinfotech
gpinfotechFlag for India

asked on

How to open a file from particular folder(Uploads)

Hi all,

I am uploading Pdf and Doc files, How can i open these file in new window, when i click on Link button with file name from the uploads folder in asp.net

Give me any reply

Regards,

Narendra.S

Avatar of saragani
saragani

in the < a href ...> you need to have Target="_new" or Target="_blank"

for example:

<a href="/hello.txt" Target="_blank">Click Me</a>

Open in new window

Avatar of gpinfotech

ASKER

Hi, thank you for your reply,
How can i add href for Link button, can you give me example, i will get the file name from database and i will assign file name dynamically, it is not static.

Regards,
Narendra
ASKER CERTIFIED SOLUTION
Avatar of Maulik Modi
Maulik Modi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your response
If answers work for  you then You can accept the answers and close this question
Hi, thank you for your reply