Hello
I am attempting something like this:
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("C:\Uploads\" & _
FileUpload1.FileName)
Label1.Text = "File name: " & _
FileUpload1.PostedFile.FileName & "<br>" & _
"File Size: " & _
FileUpload1.PostedFile.ContentLength & "<br>" & _
"Content type: " & _
FileUpload1.PostedFile.ContentType & "<br>" & _
"Location Saved: C:\Uploads\" & _
FileUpload1.FileName
Catch ex As Exception
Label1.Text = "ERROR: " & ex.Message.ToString()
End Try
Else
Label1.Text = "You have not specified a file."
End If
LblDate.Text = ReturnDate()
End Sub
If a file is uploaded successfully, let's call it mrGates.txt, it generates something like the following:
File name: mrGates.txt
File Size: 162
Content type: text/plain
Location Saved: C:\Uploads\mrGates.txt
Is it possible to stylise these attributes using CSS because until they are generated, the script does not make them available, does it?
Thank you.