Is there any difference between:
<asp:Literal ID="lit1" runat="server" />
lit1.Text = "<a href=\"" + Page.GetRouteUrl("view", new { id = "1" }) + "\">View</a>";
and:
<a href="/view/1">View</a>
I use the two ways interchangeably depending on what I'm doing. Is there any risk in hard coding the URL like in the second way?