Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to store data into the Combobox and Textbox also and after that I want to
insert the whole data of Combobox and Textbox into the database(Sql Server).

Read it ----
"First you select any field from combobox,similarly text insert into the other textbox.Remember you have not clicked on the button.After that--
Again you select any field from combobox, text insert into the other textbox.After that--
Again you select any field from combobox, text insert into the other textbox.After that--

Now at the last you have clicked the button and whole data is inserted into the database.Mean to say that data remain in a pipeline
and after that whole data go to the database."

Should I use the Looping or not. Tellme the proper answer.

So what is the procedure for it.
Posted
Updated 16-Oct-11 20:36pm
v2

This basic example should help you - Simple Database Application - Part 1[^].

In addition, have a look here[^].
 
Share this answer
 
i think you are very beginner in the C#.Net i suggest you to learn something about C# basic first.
though you can see here is very basic article for Insert,Update,Delete in Windows Form Application that may helps you.
 
Share this answer
 
Comments
I.explore.code 15-Oct-11 8:40am    
i agree, my 5... I think people just think CodeProject is one stop shop for teaching beginners and they don't even try searching for a solution for their problems themselves. I am not castigating them, but I would imagine trying all possible ideas first before posting a question on CP would make them even better and keep CP a place for specific questions...
Shukla Pawan 17-Oct-11 2:20am    
Hello Sir! My name is Shukla Pawan.Have you understood my question? I think No.
Because You cannot understand.You are not able to understand my question.
You know only comment in code project.My question was:--
I want to store data in combobox mean to say that data remain in pipeline and after that whole data is inserted into the database.
Do u know what is the Pipeline?

Read it ----
"First you select any field from combobox,similarly text insert into the other textbox.Remember you have not clicked on the button.After that--
Again you select any field from combobox, text insert into the other textbox.After that--
Again you select any field from combobox, text insert into the other textbox.After that--

Now at the last you have clicked the button and whole data is inserted into the database.Mean to say that data remain in a pipeline
and after that whole data go to the database."

Do u know the answer of my question.If u know then give the answer. Don't ask to anybody.
I m also saying that Simple u can take a combobox and textbox at the front end and select the field in the combobox or insert data into the textbox ab\nd after that using a button click, u can insert the data into the database.But My question is not this.
My qusetion is different. Try to understand my question.
And one important thing that code project is a profession website. Every beginner and senior developer ask any question whether it is the simple question or hard question.
..........................Thanks for comment. Good Bye.
I.explore.code 17-Oct-11 4:13am    
Rather than vilely posting long disrespectful and repeatitive comments, improvise your question mate. Will help you more. Cheers :)
Pritesh Aryan 15-Oct-11 9:31am    
ya you are right
Shukla Pawan 17-Oct-11 2:42am    
Hello Sir! My name is Shukla Pawan.Have you understood my question?

My question was:--
I want to store data in combobox mean to say that data remain in pipeline and after that whole data is inserted into the database.
Do u know what is the Pipeline?

Read it ----
"First you select any field from combobox,similarly text insert into the other textbox.Remember you have not clicked on the button.After that--
Again you select any field from combobox, text insert into the other textbox.After that--
Again you select any field from combobox, text insert into the other textbox.After that--

Now at the last you have clicked the button and whole data is inserted into the database.Mean to say that data remain in a pipeline
and after that whole data go to the database."


I m also saying that Simple u can take a combobox and textbox at the front end and select the field in the combobox or insert data into the textbox ab\nd after that using a button click, u can insert the data into the database.But My question is not this.
My qusetion is different. Try to understand my question.
And one important thing that code project is a profession website. Every beginner and senior developer ask any question whether it is the simple question or hard question.
..........................Thanks for comment. Good Bye.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900