|
I have 2 texboxes and 1 button
TextBoxSearch.Text;
TextBoxName.Text;
and 1 button(searchbutton)
The thing i want to do is when i press the Search button and type an id in textboxsearch.text ( so the id will get the data and pass it in my textboxname.text
I have written so long ,
var sr=new ServiceReferens1.Product();
//here i have tryed
// TextBoxSearch.Text=sr.ProductID;
// and many more thing have i tryed so i need help!
|
|
|
|
|
Workflow
1. Enter search criteria in textbox1
2. Click button
3. Find record (details)
4. Display Results in textbox2
In the button click event do the following
1. Get the list of products
2. Use a linq query or a for..next loop to locate the product record base on you criteria
3. Set the located product in a SelectedProduct object (to be used later)
4. Set the SelectedProduct.ProductName into the textbox2
Never underestimate the power of human stupidity
RAH
|
|
|
|