Formview not updating sqldatasource
First Name cannot exceed 20 characters in length, and Last Name cannot exceed 40 characters.
This tutorial series demonstrates basic aspects of using model binding with an ASP. Model binding makes data interaction more straight-forward than dealing with data source objects (such as Object Data Source or Sql Data Source).
This tutorial builds on the project created in the first part of the series. The downloadable code works with either Visual Studio 2012 or Visual Studio 2013.
It uses the Visual Studio 2012 template, which is slightly different than the Visual Studio 2013 template shown in this tutorial.
The following highlighted code shows the additions to the Grid View code.
The Try Update Model method applies the matching data-bound values from the web form to the data item.