|
-
Feb 8th, 2010, 08:08 AM
#6
Thread Starter
Lively Member
Re: Try... Catch block stops during debugging
Pradeep, as Cicatrix says, the "OnValidate" event is a "default" one, i learned about it here:
http://weblogs.asp.net/scottgu/archi...-database.aspx
(See the "Custom Entity Object Validation Support" paragraph.
The examples are in C#, but not so difficult to translate).
I am using the same technique: the strange thing is that it does not break the program at runtime,
but only while debugging.
When it breaks, if I continue execution with F5, the program goes on without problems and executes
the "MessageBox.Show(ex.Message)" line correctly.
Last edited by axplains; Feb 8th, 2010 at 08:13 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|