ciao a tutti.
devo estrarre dei dati da un db access per comporre una tabella, e utilizzo Server.HTMLEncode per codificare correttamente i caratteri accentati ecc...
In questo db ci sono a volte dei campi vuoti, e su quei campi Server.HTMLEncode mi da errore:
codice:
Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A000D)
Tipo non corrispondente: 'Server.HTMLEncode'
/query.asp, line 84
E' possibile aggirare questo problema?

Ho anche provato a mettere un if che intercetti i campi vuoti ma non va...

codice:
Do while NOT ris.EOF
    response.write "<tr>" & VbCrLf
        if ris("inglese")="" then
            response.write "<td width=220px></td>"
        else
            response.write "<td width=220px>" & Server.HTMLEncode(ris("inglese")) & "</td>" & VbCrLf
        end if
        if ris("italiano")="" then
            response.write "<td width=220px></td>"
        else
            response.write "<td width=220px>" & Server.HTMLEncode(ris("italiano")) & "</td>" & VbCrLf
        end if
        if ris("comune")="" then
            response.write "<td width=220px></td>"
        else
            response.write "<td width=220px>" & Server.HTMLEncode(ris("comune")) & "</td>" & VbCrLf
        end if
    response.write "</tr>" & VbCrLf
ris.Movenext
Loop