Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Correct syntax question

Correct syntax question

Correct syntax question


Can I ask, please, where would I place <h4> HTML tags in this line:


SaveFiles = SaveFiles & Upload.UploadedFiles(fileKey).FileName & " (" & Upload.UploadedFiles(fileKey).Length & "B) "] 

Thank you.


RE: Correct syntax question

SaveFiles = SaveFiles & Upload.UploadedFiles(fileKey).FileName & "<h4> (" & Upload.UploadedFiles(fileKey).Length & "B) </h4> "
SaveFiles = SaveFiles & "<h4>" & Upload.UploadedFiles(fileKey).FileName & "</h4> (" & Upload.UploadedFiles(fileKey).Length & " B)"

RE: Correct syntax question

Hello GK

Thank you!

There is, however, a little problem.

The script allows users to upload files and after uploading a message appears onscreen something like:

NameofFile.FileExtention (1kb).

I copied and pasted your second example and while the NameofFile.FileExtension IS centred and looks great, the size of the file is not part of it (it is on another line and left-aligned).

Is that likely to be more of a HTML/CSS issue rather than ASP?

Thanks again.


RE: Correct syntax question

In that case you can surround the whole line in the H4 tags:

SaveFiles = SaveFiles & "<H4>" & Upload.UploadedFiles(fileKey).FileName & " (" & Upload.UploadedFiles(fileKey).Length & "B)</H4>"

>Is that likely to be more of a HTML/CSS issue rather than ASP?
It's an HTML formatting issue, and you are using ASP/vbscript to generate that HTML

RE: Correct syntax question

Great stuff guitarzan!


SaveFiles = SaveFiles & "<p class=""head1"">" & Upload.UploadedFiles(fileKey).FileName & " (" & Upload.UploadedFiles(fileKey).Length & " B)</p>"] 

That works just great!

Thank you, and GK, both very much!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close