I have a datagrid that needs one of the fields to hyperlink to a document housed on another server. The path is in this format: \\server\location\file.doc, but when I click on the cell in the data grid it becomes: http://myASPServer/Subfolder/server/location.file.doc. Is there any way that I can force this to go to the correct location? I know that you can prevent this for external websites by adding ftp:// or http://, but this does not seem to work for opening up this server location. Any suggestions?
I have a datagrid that needs one of the fields to hyperlink to a
Share
I believe your answer can be found here on the asp.net forums http://forums.asp.net/t/1140909.aspx/1 – accepted answer from there below for your convenience.
I believe you need to prefix your links with
file:///for it would befile:///\\server\location\file.doc