binding data with texboxes
C#
1
Posts
1
Posters
0
Views
1
Watching
-
is this right way to bind data with texboxes when you use classes,i mean i need to display data on labels. private void btnGo_Click(object sender, System.EventArgs e) { try { SearchCustomers search = new SearchCustomers(); string Barcode1; string CustomerName="" ; string Barcode; string ProductName=""; string Price = ""; search.CustomerName = "jakes"; if(txtBarcode.Text.Length <4) { Barcode1 =txtBarcode.Text; lblCustomerName.Text = CustomerName; search.SeachCustomer( CustomerName, Barcode1); } else { Barcode = txtBarcode.Text; lblProductName.Text = ProductName; lblPrice.Text =Price; search.SeachProduct(Barcode, ProductName, Price);