Is the textbox empty or not when using RequiredFieldValidator? When clicking the submit button, an error message appears but if the textbox is filled using javascript and then clicked elsewhere, the error message does not disappear. However, if something is typed over it and the cursor moves away, the error message will be hidden.
<asp:TextBox runat="server" ID="txtValue" ClientIDMode="Static" />
<asp:RequiredFieldValidator ID="_validatorForExeFile" runat="server" ControlToValidate="txtValue">
<asp:Image ID="_imgExeFolderName" runat="server" ToolTip="Main executable missing." ImageUrl="~/error.png" meta:resourcekey="_actionExeFolderIconResource" />
</asp:RequiredFieldValidator>