Posted on: 9/18/2013 7:46:12 PM | Views : 731

 Hi everyone 
I am uploading files to a batch and trying to add 1 to NextCounter but I can’t figure out why it stops counting  after the second file.

objData.NextCounter = Convert.ToInt32(dtCounter.Rows(0)("counter_num"))
'file upload section Dim arrAnyFile() As String arrAnyFile = Directory.GetFiles(Server.MapPath("~/") & "APTemp", "*.*") Dim objFiles(arrAnyFile.Length) As PayableDataMaintenanceObjects 'Array objects to store multiple documents
'Checking if the APTemp folder is empty. In other words, if any file is uploaded For i = 0 To gvUploadedFiles.Rows.Count - 1 If gvUploadedFiles.Rows(i).Cells(3).Text = "New" Then objFiles(i) = New PayableDataMaintenanceObjects objFiles(i).ORIG_PATH = CType(Session("Files"), DataTable).Rows(i)(1).ToString() objFiles(i).FileDesc = CType(Session("Fil ...

Go to the complete details ...