I am having problem when I tried to update the data from the database in this ASP.NET C# project. It's already been 3 weeks of having the same problem
When in debugging mode of the database page (Database.aspx), I try to update the details by modifying the fields in the EditItem template. But then, when I click "Update", the data cannot be updated and shows the error message: "Data could not be updated. Please try again."
The system thinks that all the changed details have become NULLS. Is there a problem in "protected void SqlDataSource2_Updated" inside the code-behind of the database page (Database.aspx.cs)?
Database.aspx
<div> <asp:GridView ID="Applicant_TableGrid" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="1000px" DataKeyNames="name" OnSelectedIndexC ...

Go to the complete details ...