Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type mismatch: 'Server.HTMLEncode' ASP

Tags:

asp-classic

I need to encode the content of a record and i'm using this code:

If(rsScadenze("testo") <> "") Then
    myString = rsScadenze("testo") 'this is a result of a query
    myEncodeString=Server.HTMLEncode(myString) 'here there is my error

Can someone help me?

Thanks

like image 872
Bellu Avatar asked Feb 22 '12 10:02

Bellu


1 Answers

Is the result in your record NULL?

Try Server.HTMLEncode(rsScadenze("testo") & "")

like image 190
Stig Hausberg Avatar answered Sep 27 '22 19:09

Stig Hausberg