06 February 2013

The "DELETE" button is not working (DetailsView)

Have you experienced this situation? "When you press the DELETE button, it seems that it's not working. The data is not deleted."

To resolve this problem, simply add DataKeyNames in the DetailsView.

For Example:

<asp:DetailsView DataKeyNames = "ContactId" .......................>

Make sure the ContactId is the primary key of your table.

No comments:

Post a Comment