//Code for showing changed searching accounts of the company
 protected void SearchTextBox_TextChanged(object sender, EventArgs e)
 {
     AccountBL accountBL = new AccountBL();
     string search = SearchTextBox.Text;
     accountBL.SearchAccount(search);
 }
 //delete an account
 protected void DeleteButton_Click(object sender, EventArgs e)
 {
     AccountBL accountBL = new AccountBL();
     long accountID = Convert.ToInt64(Session["EditAccountID"]);
     accountBL.DeleteAccount(accountID);
     this.ViewAccountsGridView.DataBind();
     this.MiniAccountsFormView.DataBind();
     this.miniAccountDetailsView.DataBind();
     ViewAccountsUpdatepanel.Update();
     miniAccountDetailsUpdatePanel.Update();
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "GoToTab(2);", true);
 }