i have a table Table_Product which has primary key "id" and foreign key "categoryid" with table Table_Category 's "Id"
when execute command "insert into Table_Product values('"+txtCategoryid.Text+"','"+txtProductname.Text+"','"+txtPrice.Text+"','"+txtImagepath.Text+"','"+txtDescription.Text+"','"+datetime+"','"+datetime+"')";
it shows error
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Table_Product_Table_Category". The conflict occurred in database "dblist", table "dbo.Table_Category", column 'Id'.
what's the error???