hi every one i wanted to get some information on how to insert data into sql server through combo box selection.
i have 2 values in combo box. 1 is admin and 2nd is employee. basically its an employee registration form. could any 1 help me if during registration the value is combo box is selected as employee to that value in combobox should be saved in sql server usertype field.
please help. and code can you provide would be great for my understanding thanks

On Combobox SelectedIndexChanged event just create a sqlcommand where u can easyly insert the value of the combobox and the execute the command as nonquery...

Thats all.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.