I can understand your desire to find a Validation event. ASP.NET does
validation differently. You add Validation web controls throughout the page
to establish both the rules and visual presentation.
The "validation event" is really a call to the Page.Validate() method, which
goes through all validators (matching the validation group of the button) to
ask them to validate themselves. You check the results of that process by
confirming Page.IsValid is true in your post back event handler.
There are numerous articles and tutorials for ASP.NET validation on the web,
including in the Tutorials tab on this site. I put together an article that
fills in some of gaps:
http://aspalliance.com/699.
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:GH*****************@fe2.news.blueyonder.co.uk ...
Hi
I want to put all my validation code in one place, for my FormView
control, regardless of whether its editing or inserting data.
Is there a 'Validation' event somewhere??
or do I point the ItemUpdating and ItemInserting events to the same place,
and put my validation code there?
Thanks