So my teacher gave us this awesome project where we have to data bind the information the user enters on a textbox and selects on a drop down list at the click of a button. He gave us this video which showed us how to get the database set up with the table easy peasy, then when it came to the button coding part, the guy in the video was using C# and I need to do it in VB -___-, I've been looking around and no one can give me a clear answer. So how do I make it so when I click the button it saves the info on a textbox to my table and a dropdownlist selection. If anyone can tell me I'd really appreciate it.
When the onlick event happens insert the text field inside the textbox object into an SQL stringbuffer. With the dropdown, using the nth selectedindex value look up the nth value inside the items collection. Then insert that value into the SQL stringbuffer.
For databinding you will need to update the SQL buffer for every onTextChange(The textbox), or onSelect(The dropdown). This is automatic when you bind the control to the DB. Look at last couple links I included, they cover this.