Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
grid View with Sql server
kritika Rana
Mar 21 2014 6:09 AM
925
Reply
Hi
I have created two tables Category(C_ID, C_Name) and Sub_category (S_ID,S_Name,C_ID[fk])
I have dispyed the data in the gridview using sql server configuration with enabled edit and delete options
Edit is working properly but when I try to delete the row it show Error message
The DELETE statement conflicted with the REFERENCE constraint "FK__sub_catego__C_ID__60083D91". The conflict occurred in database "master", table "dbo.sub_category", column 'C_ID'.
The statement has been terminated.
Kindly help me in solving this problem.
Thanks
Kritika
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Microsoft App authentication in MVC 5
Validate drop down list before submitting the form