TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Scott
NA
1
0
Flow Control with Exception Handling
May 17 2007 11:38 AM
I'm using exception handling to catch errors, but cannot figure out how to prevent the code after the exception from executing. Example: try Statement 1 catch Error handling for Statement 1 Statement 2 Statement 3 If there is an error with Statement 1 (in this case a null value in a text box), I don't want Statements 2 & 3 to execute since they rely on a valid value. Also Statements 2 & 3 deserve their own try...catch statements. So, I am left with a hugely nested set of try...catches to handle flow control. I know this is not correct. How should I handle it? Thanks, Scott
Reply
Answers (
2
)
Advise on how to study C#
What type of var to declare