Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct syntax question 2

Status
Not open for further replies.

Blueie

Technical User
May 12, 2012
72
GB
Hello

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

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

Thank you.

Blue
 
SaveFiles = SaveFiles & Upload.UploadedFiles(fileKey).FileName & "<h4> (" & Upload.UploadedFiles(fileKey).Length & "B) </h4> "
or
SaveFiles = SaveFiles & "<h4>" & Upload.UploadedFiles(fileKey).FileName & "</h4> (" & Upload.UploadedFiles(fileKey).Length & " B)"
 
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.

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

SaveFiles = SaveFiles & [highlight #FCE94F]"<H4>" &[/highlight] Upload.UploadedFiles(fileKey).FileName & " (" & Upload.UploadedFiles(fileKey).Length & "B)[highlight #FCE94F]</H4>[/highlight]"

>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
 
Great stuff guitarzan!

Code:
 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!

Blueie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top