Archive for April 21st, 2009
UrlRewrite – Virtual Directories and the Tilde
Last week I was making some SEO changes to one of the projects I’m working on when I ran into a problem using the tilde specifier in my runat=”server” URLs. For example,
<asp:HyperLink ID="m_hlContedit" runat="server" NavigateUrl="~/tools/ContentEdit/Menu.aspx" >Site Admin Home</asp:HyperLink>
Instead of the ~ resolving to the application directory, it was resolving to the directory the browser thought I was in. This was cause by the fact that I was doing a UrlRedirect from a subdirectory to an ASPX file in the root of my application while handling a 404 error. But the ASPX file was in the root directory. So .NET thought I was in the root directory of my application while the browser thought I was in some sub directory.
Other Related Items:
Symantec Backup Exec For Windows Servers Agent For Microsoft Active Directory - ( V. 12 ) - Complete Package (Q36380) Category: Storage SoftwareItem #: Q36380. Symantec Backup Exec 12 Agent for Microsoft Active Directory dramatically reduces the time to recover from small disasters, helping to... Read More >
Buffalo Technology TeraStation Duo 4 TB (2 x 2 TB) Network Attatched Storage TS-WX4.0TL/R1TERASTATION DUO 4.0 TB RAID1 HOTSWAP
If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!

