Am doing one e-commerce website using asp.net with c#
in that i have a sample module that is adding two numbers.
in this case if i enter the string value then the page will redirect to the code behind place.
but i dont want to go to code behind place,
instead of that i want to show that error in the same page itself or any other page using global.asax file(Application_Error)
which means the Application_error.
so how do i handle my page error using Application_Error file
my code is:
protected void Button1_Click(object sender, EventArgs e)
int a = Convert.ToInt32(TextBox1.Text);
int b = Convert.ToInt32(TextBox2.Text);
int c = a + b;
TextBox3.Text = c.ToString();
thanks to all