I am trying to enable/disable a "a" tag that's in my html code through my C# back code. I know if it was a button then I would just use, xxx.Visible="false/true" but i guess "a" tag does not have any features for backend code. Here is what I have,
c#:
if (Session["SessionUsersLoginId"] == null)
{
alreadyMemberLabel.Visible = true;
SignInButton.Visible = true;
forgotdButton.Visible = true;
passwordLabel.Visible = true;
passwordTextBox.Visible = true;
Right here should disable visibility for "login_pop" a tags
}
Html:
<span style="width:32%; float:right;">
<div class="panel">
<a href="#login_form" id="login_pop">Log In</a>
<a href= "AddUsers.aspx" id="login_pop">Sign Up</a>
<span style="width:32%; float:right;">
<asp:Button ID="forgotdButton" CssClass="btn-link forgotPass" runat="server" Height="25px" Text="Forgot Password?"
onclick="forgotdButton_Click" Width="135px" />
</span>
</div>
Maybe there is a way to enable/disable through id? Thanks you