protected void Page_Load(object sender, EventArgs e) { try { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } if (!IsPostBack) { ddlbind.BindAccType(ddlAccType); ddlbind.BindAccType(ddlAccType1); ddlbind.BindAccStatus11(ddlOpType); ddlbind.BindAccStatus11(ddlOpType1); autoglname.ContextKey = Session["BRCD"].ToString(); //Only admin will have the access to view the form if ((Session["BRCD"].ToString() != "1") && (CMN.GetParameter("1", "CBSP", "1003").ToString() == "N")) { HttpContext.Current.Response.Redirect("FrmBlank.aspx", false); } else { TxtBrcd.Text = Session["BRCD"].ToString(); Txtprodcode.Focus(); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
public void BindDropDown() { dtDeposDate.Text = Session["EntryDate"].ToString(); ddlbind.BindProd(ddlProdCode); ddlbind.BindAccType(ddlAccType); ddlbind.BindIntrstPayout(ddlIntrestPay); }
protected void Page_Load(object sender, EventArgs e) { try { ClsBindDropdown bindddl = new ClsBindDropdown(); if (!IsPostBack) { if (Session["UserName"] == null) { Response.Redirect("FrmLogin.aspx"); } autoglname.ContextKey = Session["BRCD"].ToString(); bindddl.BindAccType(DDLMembType); Bindgrid(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void Page_Load(object sender, EventArgs e) { string op = ""; if (!IsPostBack) { // Get operations from query (Insert / Modify / Authorize) op = Request.QueryString["op"].ToString(); ViewState["op"] = op; if (op == "AD") { Literal1.Text = "Deposit Entry"; } else if (op == "MD") { Literal1.Text = "Deposit Modify"; } else if (op == "VW") { Literal1.Text = "Deposit View"; } else if (op == "AT") { Literal1.Text = "Deposit Authorize"; } else if (op == "DL") { Literal1.Text = "Deposit Delete"; } ddlbind.BindOperation(ddlOpType); ddlbind.BindAccType(ddlAccType); ddlbind.BindIntrstPayout(ddlIntrestPay); dtDeposDate.Text = Session["EntryDate"].ToString(); TxtProcode.Focus(); } }