protected void Page_Load(object sender, EventArgs e)
    {
        UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;

        customer = Customerlist.getCustomerList();
        if (!IsPostBack)
        {
            this.displayCustomer();
        }
    }
Пример #2
0
    protected void btnAddContact_Click(object sender, EventArgs e)
    {
        Customerlist list = Customerlist.getCustomerList();

        if (list != null)
        {
            list.Additem(getSelectedCustomer());
            lblAdded.Visible = true;
            lblAdded.Text    = getSelectedCustomer().Name + " has been added to the contact list";
        }
    }