Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CheckSignIn();
                if (Request.QueryString[SystemConstants.CouncilID] != null)
                {
                    int councilID = Convert.ToInt32(Request.QueryString[SystemConstants.CouncilID]);
                    var dac       = new AdministrationDAC();
                    AdministrationEDSC.CouncilDTRow dr = null;

                    if (councilID != 0)
                    {
                        dr = dac.RetrieveCouncil(councilID);
                        CouncilSetupUC.Mode = SystemConstants.FormMode.Edit;
                        CouncilSetupUC.SetDDL();
                        CouncilSetupUC.SetData(dr);
                    }
                    else
                    {
                        CouncilSetupUC.Mode = SystemConstants.FormMode.New;
                    }
                }
            }
        }