Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Protected Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
Try

SetRowData()
Dim table As DataTable = TryCast(ViewState("CurrentTable"), DataTable)

If table IsNot Nothing Then
For Each row As DataRow In table.Rows
Dim funob As String = TryCast(row.ItemArray(1), String)
Dim measur As String = TryCast(row.ItemArray(2), String)
Dim d_line As String = TryCast(row.ItemArray(3), String)
Dim wtfact As String = TryCast(row.ItemArray(4), String)
If funob IsNot Nothing OrElse measur IsNot Nothing OrElse d_line IsNot Nothing OrElse wtfact IsNot Nothing Then 'OrElse drpQual IsNot Nothing

Response.Write(String.Format("{0} {1} {2} {3} <br />", funob, measur, d_line, wtfact)) ', drpQual

End If
Next
End If
Catch ex As Exception
Throw New Exception(ex.Message)
End Try
End Sub






End Class
Posted
Updated 2-Apr-14 1:33am
v4
Comments
Richard MacCutchan 3-Feb-14 4:13am    
That's just a code dump. You need to add the detail of the problem and show where in the code it occurs.
Please debug and see what is the issue.
njammy 7-Feb-14 7:03am    
What is in your SetRowData() method
Ni!E$H_WAGH 10-Feb-14 5:05am    
Issue solved by removing the Handles on button click.
Thanks.

1 solution

Issue solved by removing the Handles on button click
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900