Difference beetwen assigning properties to element or putting it directly in markup
<p>What is the difference in doing this:</p>

<pre><code>&lt;a href="&lt;%=this.GetUserProfilePermalink()%&gt;"&gt;&lt;%=this.GetUsername()%&gt;&lt;/a&gt;
</code></pre>

<p>and this:</p>

<pre><code>&lt;a id="hlUser" runat="server"&gt;&lt;/a&gt;
</code></pre>

<p>in codebehind:</p>

<pre><code>hlUser.HRef = GetUserProfilePermalink();

hlUser.InnerText = GetUsername();
</code></pre>

<p>I noticed my codebehind is more readable doing it first way because I moved all assinging to markup however if I miss something somewhere it's hard to find mistake due to "too many character in literal" error.What is the difference and what is the preferable way of doing this?</p>
