From the back of my headi would try these:
Have you checked that you have connected correctly to the database? I mean the connection string and everything is ok?
The parameters you pass to the command for running the query for inserting are ok?
Try to check if the sql query you create for inserting is fine and/or it gets the data from the textboxes on screen correctly.