I have cause validation true on button. And I am checking the Page.IsValid
in c# code. But its always returning false value?
views:
89answers:
2
A:
Have you called Page.Validate before you check its valid state?
Tim Schmelter
2010-08-17 08:40:31
No I did not called Page.validate.
sathish
2010-08-17 08:41:11
Can you provide me some code.@sashaeve , I need to have causevalidation true.
sathish
2010-08-17 08:45:39
You have to call Page.Validate always befor you check if page.isValid.
Tim Schmelter
2010-08-17 09:03:25
A:
If your button has CauseValidation = "true"
and you have some another required controls the behaviour is expected. Try to set CauseValidation = "false"
or check ValidationGroup
property of button and associated controls (explanation).
sashaeve
2010-08-17 08:41:33