G
Guest
I have a RequiredFieldValidator on a textbox in a datalist edititemtemplate
section. The validator is working fine. However, if I leave the textbox blank
and get the error message, when I correct the problem and click the
update/save linkbutton the error message simply goes away but I have to click
the update/save linkbutton again for it to actually post.
Any ideas, I can't ever remember running into a problem like this.
Here is the code to the validator
<asp:RequiredFieldValidator ControlToValidate="txtName" Display="Dynamic"
ErrorMessage="* Required" runat="server"></asp:RequiredFieldValidator>
section. The validator is working fine. However, if I leave the textbox blank
and get the error message, when I correct the problem and click the
update/save linkbutton the error message simply goes away but I have to click
the update/save linkbutton again for it to actually post.
Any ideas, I can't ever remember running into a problem like this.
Here is the code to the validator
<asp:RequiredFieldValidator ControlToValidate="txtName" Display="Dynamic"
ErrorMessage="* Required" runat="server"></asp:RequiredFieldValidator>