DataList-EditItem-Required Validator

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top