Physical Server Location Folder not opening when click hyper link button in ASP.NET

BeUnique 2,112 Reputation points
2023-05-18T07:19:38.1733333+00:00

I am developing simple ASP.NET web application.

In that, for a single page, i am using many hyper links.

In every hyper links map to respective Physical Server Location Folder like below.

PHYSICAL SERVER LOCATION PATH ==> "\\SVRUS1XX\USA\MPS\TEK\STD REMOTE\INITIAL"

When end user clicks the hyper link, it should open the respective physical server location folder automatically.

Note : when click event triggered, it should open only respective physical server location folder and not file.

Earlier we were used href (<a href="file://SVRUS1XX/USA/MPS/TEK/STD REMOTE/1.INITIAL/") concept. we removed this and trying Linkbutton.

pls. help and this is very urgent.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,405 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 61,026 Reputation points
    2023-05-18T16:22:03.47+00:00

    as stated browsers do not support opening a file explorer. there are some common solutions:

    1. use a file server that supports browsers. move the to a sharepoint library, or to office 365 one drive. in this case you link as required by the service.
    2. use IIS file browser support. This works best with local files. if you use a file share, then the access is based on the IIS account, not the user. You appear to need permission support, so the file share server would need to host the IIS site
    3. Create a web site that that exposes the file share as links. you may need folder support and both upoad and download. You will need to write your own security. Many of the 3rd party control companies make a file manager compoent you can start with. https://www.telerik.com/aspnet-core-ui/file-manager
    4. Create a tray application that the client installs. this application would support web service call on a custom port. using javascript the tray application is called, and it open the explorer windows. this is the only option that does exactly what you want.
    5. Create a tray application that the client installs. this application would support web service call on a custom port. using javascript the tray application is called, and it open the explorer windows. this is the only option that does exactly what you want.

0 additional answers

Sort by: Most helpful