T
Tarscher
Hi all,
I have a custom validation on server side (I disabled client side).
The validation is inside a user control but doesn't seem to work. For
simplifying things I took out almost all code of the function that the
custom user control calls ( CustomValidator1_ServerValidate) when
clicking a button
protected void CustomValidator1_ServerValidate(object source,
ServerValidateEventArgs args)
{
args.IsValid = false;
}
When I click a button this function get called first but then goes to
the function that handles the buttonclick. I don't see why it stops
and returns an errorstate to the page?
Am I missing something?
Regards,
Stijn
I have a custom validation on server side (I disabled client side).
The validation is inside a user control but doesn't seem to work. For
simplifying things I took out almost all code of the function that the
custom user control calls ( CustomValidator1_ServerValidate) when
clicking a button
protected void CustomValidator1_ServerValidate(object source,
ServerValidateEventArgs args)
{
args.IsValid = false;
}
When I click a button this function get called first but then goes to
the function that handles the buttonclick. I don't see why it stops
and returns an errorstate to the page?
Am I missing something?
Regards,
Stijn