J
J055
Hi
I have a number of problems using validation controls within an UpdatePanel.
I'm using the latest framework. I have a ListView control with some text
boxes and validators and a ValidationSummary control all within the
UpdatePanel.
1. When I use an insert command the first time the validator and
ValidationSummary work as expected. When I click another button and then
try to insert again, the validators don't display. Works ok with
EnablePartialRendering="false".
2. When I delete a row in the ListView and then click another linkbutton I
get a null object error in the client script. The control object is null:
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}
What do I need to do to allow these validators to work correctly when used
inside an UpdatePanel?
Many thanks
Andrew
I have a number of problems using validation controls within an UpdatePanel.
I'm using the latest framework. I have a ListView control with some text
boxes and validators and a ValidationSummary control all within the
UpdatePanel.
1. When I use an insert command the first time the validator and
ValidationSummary work as expected. When I click another button and then
try to insert again, the validators don't display. Works ok with
EnablePartialRendering="false".
2. When I delete a row in the ListView and then click another linkbutton I
get a null object error in the client script. The control object is null:
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}
What do I need to do to allow these validators to work correctly when used
inside an UpdatePanel?
Many thanks
Andrew