I'm trying to set my user variable in my link equal to the current user's username.
Here is what I have:
<li><a runat="server" href="~/Profiles?user=<%: Context.User.Identity.GetUserName() %>">Profile</a></li>
The url that I end up getting is this:
/Profiles?user=<%:%20Context.User.Identity.GetUserName()%20%>
How do I amend my code to properly place the username in the url?
I'm using the webforms template and identity 2.0