G
Gene McCrory
Is it possible to have a CustomValidator against two controls in an
EditItemTemplate on a DataGrid?
Case: Have a business rule that states if ATextBox starts with
"ACertainValue" then BTextBox value is required. I added a CustomValidator
to the EditItemTemplate for the column containing BTextBox. I did not set
the ControlToValidate, but added a Method for the OnServerValidate.
The OnServerValidate is called correctly, but I don't know how to reference
ATextBox.Text and BTextBox.Text from the method assigned to the
OnServerValidate event. Is there anyway to obtain a reference to these
controls that are embedded in the EditItemTemplate of a DataGrid from within
the event handler method of OnServerValidate.
Best regards,
Gene McCrory
EditItemTemplate on a DataGrid?
Case: Have a business rule that states if ATextBox starts with
"ACertainValue" then BTextBox value is required. I added a CustomValidator
to the EditItemTemplate for the column containing BTextBox. I did not set
the ControlToValidate, but added a Method for the OnServerValidate.
The OnServerValidate is called correctly, but I don't know how to reference
ATextBox.Text and BTextBox.Text from the method assigned to the
OnServerValidate event. Is there anyway to obtain a reference to these
controls that are embedded in the EditItemTemplate of a DataGrid from within
the event handler method of OnServerValidate.
Best regards,
Gene McCrory