protected void Button1_Click(object sender, EventArgs e)
{
try
{
double a, b, c;
a = Convert.ToDouble(TextBox1.Text);
b = Convert.ToDouble(TextBox2.Text);
c = a + b;
Response.Write("<script>alert('" + c.ToString() + "')</script>");
}catch(Exception ex)
{
Response.Write("<script>alert('" + ex.Message + "')</script>");
}
}