Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to insert data into database using asp.net?
I am enter the data some fields only , some fields not entered,
My question I can not enter data some TextBoxes also its inserted data in database?
no error can display
Posted
Comments
Kenneth Haugland 8-Sep-12 14:29pm    
What did you try. You could either connect directly to a SQL server, or via a WCF service.
Member 9171128 8-Sep-12 14:30pm    
connect directly to a SQL server

In 1st line you want to know how to insert data into database in asp.net..Ok,fine.
But rest of the line of your question is confusing.But here i give your some example,hope it helps..
http://www.fissionit.co.uk/forum/showthread.php?2296-Inserting-Data-from-a-textbox-into-an-SQL-database[^]
http://www.allinterview.com/showanswers/57509.html[^]
http://www.cprogrammings.com/result/Insert-Data-into-Database-in-asp.net/39.html[^]
 
Share this answer
 
Comments
Member 9171128 8-Sep-12 14:47pm    
Thanks for reploying
I have 4 TextBoxes is their in the inserting time entering all textbox values the data inserted successfully,

I am not enter One textbox data Getting an error....
My question is I am not enter data One textboxs oR more then one textboxes also data can be inserted in databse without errors
ridoy 8-Sep-12 16:20pm    
of course more than one textbox value can be entered in database without any error..see those examples..will be clear..
The Microsoft documentation gives you a way:
http://msdn.microsoft.com/en-us/library/aa720188%28v=vs.71%29.aspx[^]
 
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