Ok, I am new to server side development (especially SP development) and I don't know if this is possible but here goes:
I have a custom list which I populate from a local folder on my file system. The folder has many nested folders and files of different formats.
I added a custom ECB menu item for this particular list and I want to be able to open the file (either in the browser or the specific application) when the menu item in the ECB menu for a list item is clicked.
Here's what I have for e.g.:
SPUserCustomAction action = list.UserCustomActions.Add(); action.Url = "file:///C://Users//Administrator//Desktop//Dir//file1.txt"; //...
But when I click the custom menu item in ECB, I get a browser alert saying: Invalid Page URL.
Am I missing something or is there a particular way of opening files by any other method that can help my issue?