deptijefsa
New Member
I have a asp label that I need to be able to change according to the code behind. How can I do this? ASPX: (The first part works correctly only for "[email protected]" 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.\[code\]<p>Email at <a href="mailto:[email protected]?subject=Comments">[email protected]</a>.</p><p>Email at <asp:Label ID="EmailLabel" runat="server"></asp:Label>.</p>\[/code\]Code Behind:\[code\]public changeLabel(){ if (//Some Condition Here) { this.EmailLabel.Text = "[email protected]"; } else { this.EmailLabel.Text = "[email protected]"; }}\[/code\]