Esempio n. 1
0
        protected void lnkOk1_Click(object sender, EventArgs e)
        {
            if (ddlState.SelectedValue == "0")
            {
                lblerror.Visible = true;
            }
            else
            {
                AdministrationEDSC.CouncilDTRow dr = new AdministrationEDSC.CouncilDTDataTable().NewCouncilDTRow();
                dr = GetData();

                string userName = SystemConstants.DevUser;
                //Membership.GetUser().UserName;

                AdministrationDAC dac = new AdministrationDAC();

                if (Mode == SystemConstants.FormMode.New)
                {
                    dac.CreateCouncil(userName, dr);
                }
                else if (Mode == SystemConstants.FormMode.Edit)
                {
                    dac.UpdateCouncil(userName, dr);
                }
                Mode = SystemConstants.FormMode.View;
                SetData(dr);
            }
        }