Exemple #1
0
 private void btnUpdAccName_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         int    AccId  = int.Parse(hdnAccountId.Value);
         string CEType = hdnCollapseExpand.Value;
         if (CEType == "1")
         {
             Finance.RenameAccount(AccId, txtAccountTitle.Text);
         }
         else
         {
             Finance.AddChildAccount(AccId, txtAccountTitle.Text);
         }
     }
     BindDG();
 }