Script(s)

technology as-is

March 7, 2006
by gchandra
0 comments

Access Files Collection using File Object : Asp.net

Dim objCurrDir As DirectoryInfo Dim arrFiles() As FileInfo, tempFile As FileInfoobjCurrDir = New DirectoryInfo(sPPhyPath) arrFiles = objCurrDir.GetFiles(iFormCode & ".*") For Each tempFile In arrFiles     If File.Exists(tempFile.Name) Then         — your code —     End If Next

March 6, 2006
by gchandra
0 comments

Access Datagrid from member sub / function

Code sample to access Datagrid values from another member sub / function apart from Datagrid events.     Private Sub temp Dim dgi As DataGridItem ‘dgdFormTypes is the id for Datagrid.    For Each dgi In dgdFormTypes.Items          Code = dgi.Cells(4).Text         Name … Continue reading