简体   繁体   English

用于IIS目录浏览的asp HyperLink

[英]asp HyperLink for IIS directory browsing

I have been trying this and it does not seem like it wants to work out for me today. 我一直在尝试此操作,但似乎它今天不想为我解决。 I want to have an hyperlink to a log folder which in IIS is enabled with directory browsing but asp.net does not like the link so it does not even send it to the client. 我想有一个指向日志文件夹的超链接,该文件夹在IIS中已通过目录浏览启用,但是asp.net不喜欢该链接,因此它甚至不将其发送给客户端。

<asp:HyperLink ID="HyperLink8" NavigateUrl="~/logs/" runat="server"></asp:HyperLink>

The reason why I am doing this is that the log link is in the footer of the master page. 我这样做的原因是,日志链接位于母版页的页脚中。 I cannot control the virtual directory name so I cannot effectively use the anchor tag. 我无法控制虚拟目录名称,因此无法有效使用锚标记。 Any one encountered this before ? 有人遇到过吗?

Thanks, 谢谢,

它可能正在将链接发送到客户端,但是如果不设置Text值,它将是不可见的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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