Hi guys,
This problem I'm facing is so weird that I cannot really believe it.
1 Dim intRows As Integer = ds.Tables(0).Rows.Count() |
2 upload.AllowedFileExtensions = New String(intRows) {} |
3 Dim x As Integer |
4 For Each row As DataRow In ds.Tables(0).Rows |
5 'upload.AllowedFileExtensions.SetValue("." & row("FileTypeEnding"), x) |
6 upload.AllowedFileExtensions.SetValue(row("FileTypeEnding"), x) |
7 x += 1 |
8 Next |
On my dev machine, running XP and IIS 5, line 6 works as expected.
But not on my server, running Server 2003 and IIS 6. There it's line 5 that works correctly.
Can you believe it?
Regards,
-DJ-