简体   繁体   中英

Response.Redirect to server path

I want to re-direct employees on our network to a server path like so

Response.Redirect("\\Aus-file00\Public\Chili_Cookoff")

I have tried adding "file://" in front but it does not work.

How can this be done?

You can't redirect to network path. If you want to just open network folder try this, for example:

Response.Write("<script>document.location.href = 'file://Aus-file00/Public/Chili_Cookoff';</script>");

It opens new Explorer window from the network path. I tested it in IE only. I think this is only browser which supports things like that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM