简体   繁体   中英

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.

<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值,它将是不可见的。

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