protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                DD.BindSecActivity(DdlActivity);
                DD.BindAccActivity(DdlAccActivity);
                DD.DdlODActivity(DdlODActivity);
                DD.DdlODInstActivity(DdlODInstActivity);
                TxtFBrID.Focus();
                //added by ankita 07/10/2017 to make user frndly
                TxtAsonDate.Text = Session["EntryDate"].ToString();
                TxtFBrID.Text    = Session["BRCD"].ToString();
                TxtTBrID.Text    = Session["BRCD"].ToString();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }