Replace String End Function:
Click here
to test this script.
Code:
Highlight
<% replaceLength "my name is fred, hello how are you doing",15 %> <% function replaceLength(strData,strLength) if len(strData) > strLength then response.write (left(strData,strLength) & "...") else response.write (strData) end if end function %>