0

When I click the ActionLink It's redirecting to the controller followed by folder name and file name like this:

http://localhost:50078/Profile?DisplayFile=%2FUploadedFiles%2F11AAAAA1111Z1A820182809163738-Screens.docx&target=_blank

Below is the code:

<td>@Html.ActionLink("Click to View", "",  new  { list.DisplayFile, target = "_blank" })</td>
Draken
  • 3,134
  • 13
  • 34
  • 54
Niranjan S
  • 132
  • 9
  • What exactly you want? Are you trying to show image or file in MVC view? For example, lets assume that there is a file named **testfile.pdf** and **testimage.jpg** In your **UploadedFiles**. Now what you want? Are you trying to open image or pdf in your browser (as your referral link understanding) or you want to see both file and image altogether? @Niranjan – Ziaul Kabir Fahad Oct 01 '18 at 16:49
  • i want to see both file and image @ZiaulKabirFahad – Niranjan S Oct 03 '18 at 04:02
  • [stackoverflow link for get all files in a folder](https://stackoverflow.com/a/13352435/6311571) with this you can get all file path within a folder so you could show images or file(file name/file as a dummy image) in your view. @Niranjan – Ziaul Kabir Fahad Oct 03 '18 at 12:51

0 Answers0