Author: asmgx | Posted on: 7/4/2008 10:04:54 AM | Views : 459

hi

is there any function that will stop running the code.

e.g. when error occur in DoSomething() function system will not proceed with DoSomethingElse() function

I dont want If statement like

if (DoSomethingFailed == false)

{ DoSomethingElse;}

 

I want something like Exit;

or halt; just to stop running the code and not halting the application

 
 protected void Button1_Click(object sender, EventArgs e)
{
DoSomething();  Go to the complete details ...