my_string="Welcome to MySite.com" Response.Write ( my_string ) Response.Write "Length of this string = " & len(my_string) Response.Write "Number of bytes Required for this string = " & lenB(my_string)
The output of this will also show the number of bytes required. Here in this case it will print this:
Welcome to MySite.com
Length of this string = 21
Number of bytes Required for this string = 42