Prasanna,
In order to perform
field level validation you need to do two things:
1. In the "Focus" properties category, set "
CausesValidation" to true (should be this by default).
2. Create an Event Handler for "Validating" Event in the "Focus" events category.
You can then add your validation logic to this handler.
If you want to cancel the leaving of the field, you simply:
e.Cancel = true;.
You can also try:
http://www.examcram2.com/articles/ar...&seqNum=4&rl=1
I haven't read it all, but its an excerpt from a book designed for the MCP which I am working towards, and all this fundamental stuff is covered.
Rob
The Developing Developer
Currently Working Towards:
MCAD C#
My Blog: http://www.robzyc.spaces.live.com
<center>
"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".
Thomas Jefferson</center>