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.SearchDealerCustomerForTransaction(keyword); txtName.Text = dc.name; txtEmail.Text = dc.email; txtContact.Text = dc.contact; txtAddress.Text = dc.address; }
private void txtSearch_TextChanged(object sender, EventArgs e) { //get the keyword from textbox string keyword = txtSearch.Text; if (keyword == "") { txtName.Text = ""; txtEmail.Text = ""; txtContact.Text = ""; txtAddress.Text = ""; return; } //write the code to get the details and set the value on textboxes DeaCustBLL dc = dcDAL.SearchDealerCustomerForTransaction(keyword); //now transfer or set the value from DeaCustBLL to textboxes txtName.Text = dc.name; txtEmail.Text = dc.email; txtContact.Text = dc.contact; txtAddress.Text = dc.address; }
private void txtSearch_TextChanged(object sender, EventArgs e) { //Get the Keyword from TextBox string keywords = txtSearch.Text; if (keywords == "") { //Clear all the TextBoxs txtName.Text = ""; txtEmail.Text = ""; txtContact.Text = ""; txtAddress.Text = ""; return; } //Write the code to get the details and set the value on textboxes DeaCustBLL dc = dcDAL.SearchDealerCustomerForTransaction(keywords); //Set the value from DeaCustBLL to TextBoxs txtName.Text = dc.name; txtEmail.Text = dc.email; txtContact.Text = dc.contact; txtAddress.Text = dc.address; }
private void txtSearch_TextChanged(object sender, EventArgs e) { //get the keyword from the text box string keyword = txtSearch.Text; if (keyword == "") { //clear all textbox txtName.Text = ""; txtEmail.Text = ""; txtContact.Text = ""; txtAddress.Text = ""; return; } //get the detail the set the values on txtboxs DeaCustBLL dc = dcDAL.SearchDealerCustomerForTransaction(keyword); //transfer the value form deacustBLL to txtbox txtName.Text = dc.name; txtEmail.Text = dc.email; txtContact.Text = dc.contact; txtAddress.Text = dc.address; }