Reputation: 133
I am taking a value and it is showing correctly (using it as a flag). Now we add a validation, but it does not show if it is meeting the validation. why? I dont know.
.aspx.cs
if (u.StatusRef.ToString().Equals('1'))
{
Email_Sent.Visible = true;
}
.aspx
<asp:Label ID="statusRef" runat="server"></asp:Label> <--- This shows the value '1'
<asp:Label ID="Email_Sent" runat="server" hidden="true">Status: You have notified the candidate to confirm references.</asp:Label>
Thanks, EB.
Upvotes: 1
Views: 416
Reputation: 172398
You can try to use:
<asp:Label ID="Email_Sent" runat="server" Visible="False">
^^^^^^^^
Instead of hidden="true"
Upvotes: 1