Solution:
- Ensure that the App_Browser folder is in the root folder
- Ensure that the App_Browser folder is not hidden.
DisableRewrite "default site"
%UserProfile%\Appdata\Roaming\Microsoft\Windows\Sendto
public string TrimToNumberOfChars (string originalString, int maxChar)
{
if (originalString.Length <= maxChar)
return originalString;
int lastSpace = originalString.LastIndexOf(" ", maxChar - 1);
if (lastSpace == -1) return "";
return originalString.Substring(0, lastSpace) + "...";
}