I have a stored procedure that returns the unique ID for a particular Name/string passed in.
On my windows form I have a ListBox control filled with a list of names (returned from another stored procedure)
I want to be able to let the user click the list box and select a name ... then once they have selected the name that value would be passed into my new stored procedure to return the unique ID which i then want to display in a hidden textbox for further usage.
Can anyone point me in the right direction with this.
The following uncommented lines of code illustrate what I am trying to do to get the contents of the users selection
//myCommand.Parameters["@companyName"].Value = cbo_companyName.SelectedText; //myCommand.Parameters["@companyName"].Value = cbo_companyName.SelectedItem;
Many Thanks :)