views:

15

answers:

0

I noticed serious bug with outputcache on user control level.

Code is as simple as

<a runat="server" href="~/App/View/Login.aspx">Login</a>

When first page domain.com/App/View/login.aspx all is fine and I see getting link like domain.com/App/View/Login.aspx

In output I see following HTML:

<a href="Login.aspx">Login</a>

But then I go to page in another folder it generates SAME html and in browser I see:

domain.com/Somewrongfolder/Login.aspx 

What is correct syntax for href which allows me to use @OutputCache?