I have following validator control. How can we set the color
of Text
of this control from code behind?
Note: Text of the control is *
as shown in the code below.
CODE
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
Text="*" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />