コード例 #1
0
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            string keyword = txtSearch.Text;

            if (keyword == "")
            {
                txtName.Text    = "";
                txtEmail.Text   = "";
                txtContact.Text = "";
                txtAddress.Text = "";
                return;
            }
            DeaCustBLL dc = dcDAL.SearchDealerCustomerForTransation(keyword);

            txtName.Text    = dc.name;
            txtEmail.Text   = dc.email;
            txtContact.Text = dc.contact;
            txtAddress.Text = dc.address;
        }