S
SAL
Hello,
Yes, I've read that Validator controls are not compatible inside
updatePanels. I have downloaded the Validators.dll file and added the
tagMapping to my web.config file so I'm thinking the validators should work
right???
ClientSideScript is disabled.
Here's the gist of the problem.
I have an app with a GridView, in an update panel, and a DetailsView, inside
another update panel. The DetailsView is used for both inserting new records
and editing existing records.
There a dropdownlist in the updatepanel for inserting/editing and when a
user selects an item from this dropdown, a dropdown inside the DetailsView
populates with the appropriate items for that category.
If the user then clicks the insert link in the DetailsView, the
requiredfieldvalidator fires off showing it's text and it's error message
displays in the ValidationSummary control. This works great.
However, if a user clicks the Editing button in the top UpdatePanel in one
of the rows of the GridView and then clicks the cancel button of the
DetailsView, validation appears to still work but the validators error
message and text no longer will display.
This same behavoir shows up for the CustomValidator I have for the same
field in the DetailsView.
Is there a way to work around this issue or is it just something in the way
that I've configured my application?
I've created a Repro project can e-mail it. It was too large for this post a
little over 1/2 mb.
Steps to re-create the issue.
Sequence 1
open the project and run it. I have it set up to startup using cntyAssetId =
1709
select an item from the dropdownlist just above the details view.
click the insert button and the RequiredFieldValidator displays its text and
the ValidationSummary control displays the error msg.
Sequence 2
Click the pencil icon for one of the rows in the GridView. The DetailsView
populates with the record.
Click the cancel button in the Detailsview
The DetailsView returns to Insert mode.
Repeat Sequence 1
Sequence 3
To test for the CustomValidator, repeat Sequence 1 and enter a non-valid
StmFacilityClkId like 999999.
The CustomValidator works as expected.
Repeat Sequence 2
Repeat Sequence 3 and the validator, while still preventing a record from
being added, the validators text and error message no longer display.
Any help is much appreciated on this. I googled and googled on it and tried
lots of things.
SAL
Yes, I've read that Validator controls are not compatible inside
updatePanels. I have downloaded the Validators.dll file and added the
tagMapping to my web.config file so I'm thinking the validators should work
right???
ClientSideScript is disabled.
Here's the gist of the problem.
I have an app with a GridView, in an update panel, and a DetailsView, inside
another update panel. The DetailsView is used for both inserting new records
and editing existing records.
There a dropdownlist in the updatepanel for inserting/editing and when a
user selects an item from this dropdown, a dropdown inside the DetailsView
populates with the appropriate items for that category.
If the user then clicks the insert link in the DetailsView, the
requiredfieldvalidator fires off showing it's text and it's error message
displays in the ValidationSummary control. This works great.
However, if a user clicks the Editing button in the top UpdatePanel in one
of the rows of the GridView and then clicks the cancel button of the
DetailsView, validation appears to still work but the validators error
message and text no longer will display.
This same behavoir shows up for the CustomValidator I have for the same
field in the DetailsView.
Is there a way to work around this issue or is it just something in the way
that I've configured my application?
I've created a Repro project can e-mail it. It was too large for this post a
little over 1/2 mb.
Steps to re-create the issue.
Sequence 1
open the project and run it. I have it set up to startup using cntyAssetId =
1709
select an item from the dropdownlist just above the details view.
click the insert button and the RequiredFieldValidator displays its text and
the ValidationSummary control displays the error msg.
Sequence 2
Click the pencil icon for one of the rows in the GridView. The DetailsView
populates with the record.
Click the cancel button in the Detailsview
The DetailsView returns to Insert mode.
Repeat Sequence 1
Sequence 3
To test for the CustomValidator, repeat Sequence 1 and enter a non-valid
StmFacilityClkId like 999999.
The CustomValidator works as expected.
Repeat Sequence 2
Repeat Sequence 3 and the validator, while still preventing a record from
being added, the validators text and error message no longer display.
Any help is much appreciated on this. I googled and googled on it and tried
lots of things.
SAL