Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Insert, Delete, Update in Grid View using ASP.NET
no vote
Insert, Delete, Update in Grid View using ASP.NET 1.As we don't want to use datasource controls. Please delete "Object Data Source1" control from the webform. 2. Delete Data Source ID="Object Data ource1" from Grid View1. This should remove the dependency of Grid VIew1 on Object Data Source 1 control. 3. From the code behind file, delete lbInsert_Click() event handler method. 4. In the "Footer Template" of "EmployeeId" Template Field, please delete On Click="lbInsert_Click", as we no longer have this event handler method. 5. Delete "Command Field" column from Grid View1 6. Now, include a template field in the place of Command Field. This template field is used to display Edit, Update, Cancel and Delete link buttons. We don't want delete and cancel buttons to cause validation, so set Causes Validaion property of these buttons to false.
abay902542
2016-08-23
0
1
No more~