Example #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         bl.e_name = txt_expence.Text;
         dl.insert_expence(bl);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('Expence Name  Created successfully'); window.location='addexpence.aspx';", true);
     }
     catch (Exception)
     {
         throw;
     }
 }