0

edited Does anyone know how to upload/open a file in a shared location on a intranet with a link button either from the markup or programmatically?

 <asp:LinkButton runat="server" ID="btnGetFile" CommandName="GetFile" CommandArgument='<%# Eval("Id") %>' Visible="false" Text='<%# Eval("FormName") %>'></asp:LinkButton>
Siva Charan
  • 17,940
  • 9
  • 60
  • 95
auwall12688
  • 389
  • 3
  • 11
  • 23

2 Answers2

0

You are talking about files on your local computer, is that correct? If so according to this site, it cannot be done in ASP.NET.

Mo Patel
  • 2,321
  • 4
  • 22
  • 37
0

If you are working from a web application there are a lot of security restrictions when it comes to accessing local files. If you are writing the application for use locally you might be able to give permissions to open local files by giving the DefaultAppPool User access to the files in question.

Îf you are planning on puttting your app on the web on the other hand, you options are pretty limited.

Hope this helps!

Logard
  • 1,494
  • 1
  • 13
  • 27