コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             if (Session["UserName"] == null)
             {
                 Response.Redirect("FrmLogin.aspx");
             }
             Txtprdcode.Focus();
             ViewState["UN_FL"]      = Request.QueryString["FLAG"].ToString();
             autoglname.ContextKey   = Session["BRCD"].ToString();
             AutoPlGlName.ContextKey = Session["BRCD"].ToString();
             BD.BindACCTYPE(Ddlacctype);
             BD.BindFreq(DDlFreType);
             Bindgrid("ED");
             Flag = "1";
             ViewState["Flag"]         = "AD";
             BtnAdd.Text               = "Submit";
             TblDiv_MainWindow.Visible = false;
             Div_grid.Visible          = true;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }