Why is ASP code unavailable?

HeaderStr = HeaderStr & "<link href="""&HB_ManageFolder&"/Include/ASBox/ASBox.css"" rel=""stylesheet"" type=""text/css"">"&vbcrlf

But if I change &HB_ManageFolder&to & HB_ManageFolder &, it will work.

Why?

+3
source share
2 answers

& H launches a hexadecimal number

+4
source

I really don't know VBScript (which you probably use with ASP), but as far as I know, it is very similar to VBA.
And I know this problem from VBA: if you create lines with "&" and you do not leave spaces between them, VBA will not compile until you put spaces.

This is probably the same problem.
So you just need to use "and" instead of "&". and it will work.

0

Source: https://habr.com/ru/post/1727472/


All Articles