scubieman
scubieman

Reputation: 49

How to store network folder location within asp .net page?

I am working a webpage where we store locations of where files are. Example would be

H:/Sales/Projects

. I need to store these locations and users can click on the hyperlink to open file explorer of that selected location.

Currently I'm using <input type="file" id="myFile" name="myFile" /> to import folder location which adds file which isnt needed or wanted.

I'm using hyperlink field within gridview to view.

<asp:HyperLinkField DataNavigateUrlFields="outputItem" DataNavigateUrlFormatString="\\fs1.company.local\{0}" DataTextField="outputItem" HeaderText="Output Location" SortExpression="outputItem">

Upvotes: 0

Views: 75

Answers (1)

David
David

Reputation: 3763

because sites in IIS run under restricted credentials you would need to setup some new credentials that will have permissions to the network share. setup the credentials to have access to the network share on the share's host computer then setup the sites application pool to run under the same credentials.

Upvotes: 1

Related Questions