Click here to Skip to main content
15,905,325 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I have a textbox, dropdownlist, two Radiobuttons and a submit button . and in my sql database I have four columns corresponding to textbox,dropdownlist , radiobutton1,and radiobutton2. When I click submit button I should store these values to my database …
Posted
Comments
Orcun Iyigun 14-Dec-11 3:10am    
So what is hard to do? What have you tried?
palraj001 14-Dec-11 3:11am    
just use insert query. what is the problem?
Keith Barrow 14-Dec-11 3:24am    
The problem is this chap is obviously a beginner, and probably doesn't know where to start.
Keith Barrow 14-Dec-11 3:29am    
I have answered your question but, as a bit of guidance for using newsgroups such as this, always Google first. "how to store in a database in .net" returns useful results. If you don't do this you are likely to get replies complaining about your question. There is a link about "how to ask a question", I suggest you read this as it will help in future. It is normal to ask about a specific problem (see Orcun Iyigun's comment), but this doesn't always work especially with "How do I start" questions.
Amir Mahfoozi 14-Dec-11 4:03am    
Apparently you haven't heard anything about Normalization. So try to learn more about it beside doing this project ;) Good Luck.

1 solution

The answer is simple:

  1. Design a database that actually represents whatever it is you are trying to store
  2. Use one of the following to get the data in/out of the database: ADO.NET, Linq to Sql, Enitity Framework.*


* You will need to google for these, there are 1000s of examples for each, and each has its own strengths and weaknesses. I'd start with ADO as the other two are based on it. This list includes just the Microsoft options available in the .Net Framework, you could also add NHibernate to that list.
 
Share this answer
 

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