Let me share with you my question.
Scenario: Table Name:Emp ,Columns:id,name,sal
I have a combobox which is populated by id which is there in a database. And two Textboxes Name,Sal to insert Name and Salary of the Employee. I have no problem in inserting the datas to database and viewing all the inserted datas.
I got issue when I tried to view name and salary of the employee when a particular id is selected from combobox and finally clicking on a button to get the name and salary in the textboxes.
string str = ComboBoxName.getSelectedItem();
and a command as :"Select name,sal from Emp where id = +str"
View Complete Post