MailTo: Asp.net
<p>I have a asp label that I need to be able to change according to the code behind.  How can I do this?  </p>

<p>ASPX:  (The first part works correctly only for "TestA@abc.com" and the second part dynamically changes the label (EmailLabel) according to the "if" statement in the code behind.  How can I integrate these two so the label is mailto? Thanks.</p>

<pre><code>&lt;p&gt;Email at &lt;a href="mailto:TestA@abc.com?subject=Comments"&gt;TestA@abc.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Email at &lt;asp:Label ID="EmailLabel" runat="server"&gt;&lt;/asp:Label&gt;.&lt;/p&gt;
</code></pre>

<p>Code Behind:</p>

<pre><code>public changeLabel()
{
 if (//Some Condition Here)
 {
    this.EmailLabel.Text = "TestA@abc.com";
 }
 else
 {
  this.EmailLabel.Text = "TestB@abc.com";
 }
}
</code></pre>
