Protected Sub btnedit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnedit.Click Dim currentID As Integer Dim dblAmount1 As Integer Dim dblAmount2 As Integer Dim myAdapter As spGetFeeStructureTableAdapter For Each item As ListViewDataItem In lvFeeStructure.Items currentID = lvFeeStructure.DataKeys(item.DataItemIndex).Value intGradeID = CType(ddlGrades.SelectedValue, Integer) If (item.ItemType = ListViewItemType.DataItem) Then dblAmount1 = Val(CType(item.FindControl "decMonth1TextBox"), TextBox).Text) dblAmount2 = Val(CType(item.FindControl("decMonth2TextBox "), TextBox).Text) myAdapter.UpdateFeeStructure("CurrentID", intGradeID,dblAmount1 ,dblAmount2) lvFeeStructure.DataBind() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)