ConfirmButton with Validation -- Validation does not work.

Topics: User Forum
Dec 22, 2006 at 3:14 PM
Hi. I have been trying to work with the ConfirmButton control in your XGrid package in a way that will allow the standard asp.net validations (with a validatation group). As far as I've seen, the confirmation popup dialog works but the validation popup dialog does not, when the button is clicked. My button if defined as follows:

<asp:TextBox id="LastName" runat="server" Text="" size="20" maxlength="40"></asp:TextBox>
<asp:requiredfieldvalidator id="LastNameRFV" runat="server" text="*" initialvalue="" errormessage="Please enter valid Last Name/Surname." display="Static" controltovalidate="LastName" ValidationGroup="PersonalVG"></asp:requiredfieldvalidator>
<confirmControl:ConfirmButton ID="BtnUpdateLastName" runat="server" Text="Update Last Name" MessageText="This action cannot be undone. Are you sure you want to update the Last Name?" OnClick="btnUpdateLastName_Click" ValidationGroup="PersonalVG" CausesValidation="true"></confirmControl:ConfirmButton>

Any help you can give on the matter will be greatly appreciated.

Thanks.

-- ovchato --