Asp net detailsview not updating
The Grid View control does not include the Insert Method property and therefore cannot be used for adding a new record with model binding.
To display the validation errors from model binding, set the Show Model State Errors property set to true.Above the Validation Summary, add: The new link will appear at the top of the content for the Students page. You will render the fields for adding a new student by using a Dynamic Entity control.Then, add a new web form using a master page, and name it Add Student. The Dynamic Entity control renders that editable properties in the class specified in the Item Type property.Notice that your project now includes a folder named Dynamic Data.In that folder, you will find the templates that are automatically applied to dynamic controls in your web forms.