V
Vili
Hi all.
I am trying to create a dynamic website that has links to the files in a
specicif folder.
Files in the folder will be changing daily.
So far I have put a textbox to html and code in as such:
'
'This writes the amount of files to textbox
'
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim dirs As String() = Directory.GetFiles("C:\folder\files", "*")
Dim dir As String
Try
For Each dir In dirs
Console.WriteLine(dir)
Next
textbox.text = ("there is " & i & " items in the folder")
Catch virhe As Exception
Console.WriteLine("The process failed: {0}", e.ToString())
End Try
End Sub
Thing is that now I am jammed.
Tuomo
I am trying to create a dynamic website that has links to the files in a
specicif folder.
Files in the folder will be changing daily.
So far I have put a textbox to html and code in as such:
'
'This writes the amount of files to textbox
'
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim dirs As String() = Directory.GetFiles("C:\folder\files", "*")
Dim dir As String
Try
For Each dir In dirs
Console.WriteLine(dir)
Next
textbox.text = ("there is " & i & " items in the folder")
Catch virhe As Exception
Console.WriteLine("The process failed: {0}", e.ToString())
End Try
End Sub
Thing is that now I am jammed.
Tuomo