Hi,
I have an asp.net ListView that has an insert item template. In there I have a couple of textboxes that perform validation. When I click the "Save" button the inputs are validated but when I correct the validation errors I can´t click the "Save" button or the "Cancel" button. I have validation groups on the textboxes, the validators, and the button (the cancel has it set to false). I can´t see what is causing this.
The code looks something like this:
<InsertItemTemplate>
...
<asp:TextBox runat="server" ID="ArticleEANTextBox"
ValidationGroup="InsertItemTemplate"
CssClass="typetext"
MaxLength="13" />
<asp:RequiredFieldValidator runat="server"
ControlToValidate="ArticleEANTextBox"
ErrorMessage="Please fill in"
ValidationGroup="InsertItemTemplate" />
.....
<asp:LinkButton runat="server"
ValidationGroup="InsertItemTemplate"
Text="Save"
CommandName="Insert" />
<asp:LinkButton runat="server"
CausesValidation="false"
Text="Cancel"
CommandName="Cancel" />
Any ideas...?