Esempio n. 1
0
        public void updataelogic()
        {
            try
            {
                string      User_id          = Convert.ToString(Session["UserID"]);
                GridViewRow row              = GridView1.SelectedRow;
                int         financialyear_id = Convert.ToInt32(ViewState["financialyear_id"]);
                context.sp_UpdateFyear(companyId, financialyear_id, branchId, txtStartdate.Text, txtEndDate.Text, User_id, DateTime.Today);
                btnUpdate.Visible = false;
                btnSave.Visible   = true;

                loadDataTable();

                divalert.Visible = true;
                lblAlert.Text    = "Financial year Updated Successfully";
            }
            catch (Exception ex)
            {
                ErrorLog.saveerror(ex);
                //Do Logging
            }
        }