Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to save certain details like product name , contact number in the database and retrieve it on the webpage. i want to take details from the user where user fill in details on webpage and clicks submit button. details should go to database and should be visible on webpahe.

Kindly provide me the submit button code which captures details and save it to dataase
also provide code for retrieval of data on webpage.

thank you
Posted
Comments
Amit Jadli 17-Dec-15 3:48am    
Search google for CRUD operations in Asp.net and sql server there are thousands of tutorials for this...
Try one of the tutorial which you feel easy for you... After that if you have any problem on that then come back and ask questions...here in CP peoples loves to help others...
muchie242 18-Dec-15 0:59am    
Ok! ty
F-ES Sitecore 17-Dec-15 5:08am    
We're not here to provide code on demand, and you can't learn something this broad from posts on a forum. I'd recommend you get a book on c#, and one on asp.net and go through them to get a grounding on the basics. At least go through some on-line tutorials if you don't want to do a whole book. If you then have specific questions about specific problems you can ask them here.
muchie242 18-Dec-15 0:59am    
ohh i c.. okay!
Sinisa Hajnal 17-Dec-15 6:29am    
You might try W3Schools to get some basics first. Go through tutorials and learn how to do basic stuff. If you find something you don't understand, post the code you did and ask the question about that single item.

1 solution

You can insert the details to your database & retrieve data to display from CRUD operations in asp.net. Here are basic examples to do so which fulfill your requirement of data insertion & get data on webpage.

Look into below links. Thanks.


ASP.NET GridView: CRUD Operations[^]


http://www.c-sharpcorner.com/uploadfile/raj1979/select-add-update-and-delete-data-in-a-Asp-Net-gridview-control/[^]
 
Share this answer
 
Comments
Member 11414035 11-Jan-16 23:50pm    
Upvote +5

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