用于 IIS 目录浏览的 asp 超链接
我一直在尝试这个,但今天似乎并不适合我。我想要一个指向日志文件夹的超链接,该文件夹在 IIS 中启用目录浏览,但 ASP.NET 不喜欢该链接,因此它甚至不将其发送到客户端。
<asp:HyperLink ID="HyperLink8" NavigateUrl="~/logs/" runat="server"></asp:HyperLink>
我这样做的原因是日志链接位于母版页的页脚中。我无法控制虚拟目录名称,因此无法有效使用锚标记。以前有人遇到过这种情况吗?
谢谢,
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.
<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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可能正在将链接发送到客户端,但如果不设置
Text
值,它将不可见。It probably is sending the link to the client, but without setting the
Text
value it will be invisible.