Ejemplo n.º 1
0
 /// <summary>
 /// Page Load Event Handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     custPNumber        = Request.QueryString["CustomerNumber"].ToString();
     lblCustNumber.Text = custNumber = billToAddress.GetCustomerNumber(custPNumber);
     // lblCustNumber.Text = custNumber = Request.QueryString["CustomerNumber"].ToString();
     if (!IsPostBack)
     {
         BindNotesType();
         BindDataGrid();
         ViewState["Mode"] = "ADD";
     }
     if (Session["UserSecurity"].ToString() == "")
     {
         ibtnSave.Visible = false;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Page Load Event Handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     custPNumber        = Request.QueryString["CustomerNumber"].ToString();
     lblCustNumber.Text = custNumber = billToAddress.GetCustomerNumber(custPNumber);
     lblCustName.Text   = billToAddress.GetCustomerName(custNumber);
     lnkListMaster.Attributes.Add("onclick", "Javascript:ShowDetail(this.id);return false;");
     if (!IsPostBack)
     {
         BindState();
         BindDataGrid();
         ViewState["Mode"] = "ADD";
     }
     if (Session["UserSecurity"].ToString() == "")
     {
         ibtnSave.Visible = false;
     }
 }