At
runat="server"
property to the anchor tag. After setting the property you'll able to access anchor tag through code. There you can set
Visible
property of anchor tag to
true
or
false
.
Try this:
<a id="angerBonusPoints" runat="server" href="../MyHome/UserBonusPoints.aspx" rel="external" data-role="button" visible="false" data-icon="gear" data-theme="a" class="bonus">Bonus Points</a>
C#:
angerBonusPoints.Visible = true;
angerBonusPoints.Visible = false;