Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindRecDiv();
            DD.BindFinancialActivity(DdlAccActivity);
            DIV1.Visible      = false;
            DIV2.Visible      = false;
            BtnCreate.Visible = false;
            BtnModify.Visible = false;
            BtnPost.Visible   = false;
            DIV5.Visible      = false;
            DIV3.Visible      = false;

            Txtfrmbrcd.Text = Session["BRCD"].ToString();
            Txttobrcd.Text  = Session["BRCD"].ToString();

            if (!string.IsNullOrEmpty(Request.QueryString["CUSTNO"]))
            {
                txtCustNo.Text   = Request.QueryString["CUSTNO"].ToString();
                DT1              = CD.GetCustName(txtCustNo.Text.ToString());
                txtCustName.Text = DT1.Rows[0]["CUSTNAME"].ToString();
            }
        }
    }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             autocustname.ContextKey = Session["BRCD"].ToString();
             DD.BindFinancialActivity(DdlAccActivity);
             TxtMemberNo.Focus();
             BtnCrPost.Visible    = false;
             txtChqPrintDate.Text = accop.GetChqPrintDate(Convert.ToString(Session["BRCD"]));
             Clear();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }