| I was wondering how can I create required field validator with image, instead this ugly asterix, used in most forms. The answer was pretty obvious but I couldn't see it for quite a long time. I even decided to write my own validator to inherit from RequiredFieldValidator and hopefully overwite the HtmlTextWriter thing in order to achieve this functionality. The solution is pretty strightforward, you don't need new controls, you don't need anything, all you need is : <asp:TextBox ID="txtFakeTextBox" runat="server"><>asp:TextBox> <asp:RequiredFieldValidator ID="rfFake" runat="server" ControlToValidate="txtFakeTextBox" Display="Dynamic" EnableClientScript="true"> |
<>asp:RequiredFieldValidator>
<br />
<asp:Button ID="btnOpenFakeValidator" runat="server" Text="Validate!" CausesValidation="true" />
What you do is to place and
