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); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } Bindgrid(); BD.Bindreason(DdlReason); BD.BindPercentage(DDLPercentage); BD.BindFlatCharges(DDLFLatCharges); BD.BindFrequencyType(DDLFrequency); BD.BindAllowType(DDLAllow); BD.BindSkipType(DDLSkipCharges); BD.BindRetrunType(DDLReturn); BD.BindReasons(DdlReason); txtBrcode.Text = Session["BRCD"].ToString(); txtBranch.Text = Session["BName"].ToString(); txtEffectivedate.Text = Session["EntryDate"].ToString(); BD.BindACCTYPE(Ddlacctype); txtAccType.Enabled = false; TxtTReturnType.Enabled = false; TxtSkipcharges.Enabled = false; TxtAllowTOD.Enabled = false; TxtFrequencyAppln.Enabled = false; TxtReason.Enabled = false; TxtflatChg.Enabled = false; Txtpert.Enabled = false; ClearData(); DDLReturn.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); //Response.Redirect("FrmLogin.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { try { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } if (!IsPostBack) { string allow = com.ChkECS(Session["BRCD"].ToString()); if (allow == "Y") { AutoCompleteExtenderminor.ContextKey = Session["BRCD"].ToString(); autooffcname.ContextKey = Session["BRCD"].ToString(); bd.BindDesig(ddlDesig); bd.BindACCTYPE(ddlCustType); if (!string.IsNullOrEmpty(Request.QueryString["CUSTNO"])) { TxtCustno.Text = Request.QueryString["CUSTNO"].ToString(); CustNoChanged(); } EmptyGridBind(); } else { Response.Redirect("~/FrmBlank.aspx?ShowMessage=true"); } TxtCustno.Focus(); } } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }
protected void Page_Load(object sender, EventArgs e) { try { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } if (!IsPostBack) { autocustname1.ContextKey = Session["BRCD"].ToString(); autoglname.ContextKey = Session["BRCD"].ToString(); autoagentname.ContextKey = Session["BRCD"].ToString(); txtodate.Text = Session["EntryDate"].ToString(); TblDiv_MainWindow.Visible = false; DIVACC.Visible = true; Div_grid.Visible = true; BD.BindACCTYPE(Ddlacctype); BD.BindMODEOFOPR(DdlModeofOpr); BD.BindRelation(ddlRelation); BD.BindRelation(ddlrelation2); BD.BindRelation(ddlreljoint); BD.BindRelation(ddlrelationj2); txtAccType.Enabled = false; txtmopr.Enabled = false; txttype.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }