protected void Page_Load(object sender, EventArgs e) { _customer = new Customer(); _dataset = _customer.GetDataSet(); Session["ID"] = ""; FillGridView(); }
/// <summary> //Pre-Condition: //Post-Condition: Class initalized //Description: Acts as a constructor /// </summary> private void InitializeClass() { AccessRights = (Hashtable)Session["AccessRight"]; btn_Delete.Enabled = canWrite("frm_Customers"); btn_Save.Enabled = canWrite("frm_Customers"); _customer = new Customer(); }
/// <summary> //Pre-Condition: //Post-Condition: Class initalized //Description: Acts as a constructor /// </summary> private void InitializeClass(long pLongID) { AccessRights = (Hashtable)Session["AccessRight"]; btn_Delete.Enabled = canWrite("frm_Customers"); btn_Save.Enabled = canWrite("frm_Customers"); _customer = new Customer(pLongID); if (!Page.IsPostBack) AssignDataToTextbox(); }
protected void Page_Load(object sender, EventArgs e) { if (!(Boolean)Session["AllowLogin"]) Response.Redirect("Login.aspx"); AccessRights = (Hashtable)Session["AccessRight"]; if (isDenied("frm_Customers")) { Response.Redirect("Home.aspx"); } else { _customer = new Customer(); _dataset = _customer.GetDataSet(); _dataset.Tables[0].Columns.Remove("IsASupplier"); Session["ID"] = ""; FillGridView(); } }
protected void dd_Customer_SelectedIndexChanged(object sender, EventArgs e) { Session["Customer"] = _customer = new AppObjects.Customer(long.Parse(dd_Customer.SelectedValue)); txt_ShippingAddress.Text = GetAddress(); }
private void InitializeClass(long pLongID) { _customer = new Customer(pLongID); if (!Page.IsPostBack) AssignDataToTextbox(); }
private void InitializeClass() { _customer = new Customer(); }