How do you convert this coding to asp

if(strlen($shortdesc) > 15) { 

$shortdesc = substr(trim($shortdesc),0,$TextCutoff); 

$shortdesc = substr($shortdesc,0,strlen($shortdesc)-strpos(strrev($shortdesc)," ")); 

$shortdesc .= "..."; 

} 

    Depends; which ASP language are you talking about? VBScript? JScript? PerlScript? Don't any of these have documentation that lists what sort of string functions they support?

      I not sure it is correct but it is working fine.

      if Len(shortdesc) > 100 then

      shortdesc = mid(shortdesc,1,100)

      shortdesc = mid(shortdesc, 1, len(shortdesc )-Instr(StrReverse(shortdesc )," "))

      shortdesc = shortdesc &"..."

      end if

        Write a Reply...